Alarm Handling
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.
Acknowledging Alarms
To acknowledge an alarm, The following method can be used:
spaceId(required): The space ID of the User.eventId(required): The event ID of the Alarm.
InstaVision.securityServices.acknowledgeAlarm(
spaceId = "spaceId",
eventId = "eventId",
onSuccess = {
// The alarm has been acknowledged
},
onError = { error ->
// The error object contains the error code and message
}
)
Sending Help Requests
To initiate a help request, The following method can be used:
spaceId(required): The space ID of the User.
InstaVision.securityServices.sendHelp(
spaceId = "spaceId",
onSuccess = {
// The help request has been initiated.
},
onError = { error ->
// The error object contains the error code and message
}
)
Getting Currently Live Alarm
To get the live alarm, The following method can be used:
spaceId(required): The space ID of the User.
InstaVision.securityServices.getLiveAlarm(
spaceId = "spaceId",
onSuccess = { alarm ->
// The alarm object of the currently active alarm
},
onError = { error ->
// The error object contains the error code and message
}
)