Devices Plugin Functions
Device functions helps you to manage current user's devices. These functions work with the Users table, so make sure to enable this table first.
Get Users Devices
This function will return active devices of current user.
- Unity3D
- TypeScript
var devices = await ServiceHub.Services.Devices.FindMyDevices(new FindMyDeviceParams());
DynamicPixels.Services.Devices.GetMyDevices(): Promise<Device[]>;
Revoke Device Access
This function disable access of specific device and make it login again.
- Unity3D
- TypeScript
await ServiceHub.Services.Devices.RevokeDevice(new RevokeDeviceParams
{
DeviceId = 0
});
DynamicPixels.Services.Devices.RevokeDevice<T extends RevokeDeviceParams>(input: T): Promise<void>;