System Control

Pre-requisite

  • The user has to be signed in to perform the following operations.
  • The user should have an active pro-monitoring plan activated on the space.

Arming the System

To arm the system, The following method can be used:

  • spaceId (required): The space id of the User.
InstaVision.securityServices.armSystem(
  spaceId = "spaceId",
  onSuccess = {
    // The system arming request has been sent and will be armed after the exit delay
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Disarming the System

To disarm the system, The following method can be used:

  • spaceId (required): The space id of the User.
InstaVision.securityServices.disarmSystem(
  spaceId = "spaceId",
  onSuccess = {
    // The system will be disarmed.
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Enabling Test Mode

To enable test mode on the system, The following method can be used:

  • spaceId (required): The space id of the User.
  • request (required): The request object to toggle the test mode
val request = TestModeRequest(
  enable = true
)
InstaVision.securityServices.disarmSystem(
  spaceId = "spaceId",
  request = request,
  onSuccess = {
    // The system is now in test mode.
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)