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:

  • device (required): The device object on which the operation has to be performed.
InstaVision.deviceServices.getDeviceSetting(
  device = device,
  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:

  • device (required): The device object on which the operation has to be performed.
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
  },
)

This site uses Just the Docs, a documentation theme for Jekyll.