Device Settings
Pre-requisite:
- The user has to be signed in to perform the following operations.
- The device should be a non cluster device to perform the following operations.
Get Device Setting for a Device
To get the device settings, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
InstaVision.deviceServices.getDeviceSetting(
spaceId = "spaceId",
deviceId = "deviceId",
onSuccess = { deviceSetting ->
// The device settings object
},
onError = { error ->
// The error object contains the error code and message
},
)
Get Device Settings for a List of Devices
To get the list of device settings, The following method can be used:
spaceId(required): The space ID of the devices.deviceIds(required): The list of device IDs.
InstaVision.deviceServices.getDeviceSettings(
spaceId = "spaceId",
deviceIds = listOf("deviceId1", "deviceId2"),
onSuccess = { deviceSettings ->
// The list of device settings
},
onError = { error ->
// The error object contains the error code and message
},
)