Address Management
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.
Getting the states in the USA
To get a list of state in the USA, The following method can be used:
spaceId(required): The space ID of the User.
InstaVision.securityServices.getUsaStates(
spaceId = "spaceId",
onSuccess = { states ->
// List of states in the USA
},
onError = { error ->
// The error object contains the error code and message
}
)
Getting TimeZones in USA
To get a list of timezones in the USA, The following method can be used:
spaceId(required): The space ID of the User.
InstaVision.securityServices.getUsaTimeZones(
spaceId = "spaceId",
onSuccess = { timeZones ->
// List of TimeZones in the USA
},
onError = { error ->
// The error object contains the error code and message
}
)
Getting TimeZone from Lat Long
To get a timezones for the lat long, The following method can be used:
spaceId(required): The space ID of the User.latitude(required): The latitude of the location.longitude(required): The longitude of the location.
InstaVision.securityServices.getTimeZone(
spaceId = "spaceId",
latitude = "39.639538",
longitude = "-79.792012",
onSuccess = { timeZone ->
// The TimeZone object of the co-ordinates provided.
},
onError = { error ->
// The error object contains the error code and message
}
)