Device Maintenance
Pre-requisite: The user has to be signed in to perform the following operations.
Format SD Card
To format the SD card of the device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
InstaVision.deviceServices.formatSDCard(
spaceId = "spaceId",
deviceId = "deviceId",
onSuccess = {
// The SD card was format request was sent
},
onError = { error ->
// The error object contains the error code and message
},
)
Delete Device
To delete the device, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.
InstaVision.deviceServices.deleteDevice(
spaceId = "spaceId",
deviceId = "deviceId",
onSuccess = {
// The device was deleted successfully
},
onError = { error ->
// The error object contains the error code and message
},
)