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:

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

  • device (required): The device object on which the operation has to be performed.
InstaVision.deviceServices.deleteDevice(
  device = device,
  onSuccess = {
    // The device was deleted successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  },
)

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