Pairing Session
Pre-requisite: The user has to be signed in to perform the following operations.
Create a pairing session key
To create a pairing session key, The following method can be used:
spaceId(required): The space ID of the device.
val request = PairingSessionRequest(
timezoneSettings = TimezoneSettings(timezoneId, tzFormat) // The timezone settings
)
InstaVision.deviceServices.createPairingSession(
spaceId = "spaceId",
request = request,
onSuccess = { pairingSession ->
// The object contains the pairing session key
},
onError = { error ->
// The error object contains the error code and message
},
)
Get a pairing session key
To get a pairing session key, The following method can be used:
spaceId(required): The space ID of the device.sessionKey(required): The pairing session key.
InstaVision.deviceServices.getPairingSessionStatus(
spaceId = "spaceId",
sessionKey = "sessionKey",
onSuccess = { status ->
// The object contains the pairing session status
},
onError = { error ->
// The error object contains the error code and message
},
)