abort Cross Device Session
suspend fun abortCrossDeviceSession(crossDeviceSession: CrossDeviceSession): MIRACLResult<Unit, CrossDeviceSessionException>
Cancels an ongoing CrossDeviceSession.
Return
A MIRACLResult representing the result of the operation:
If successful, returns a MIRACLSuccess with Unit.
If an error occurs, returns a MIRACLError with a CrossDeviceSessionException describing issues with the operation.
Parameters
cross Device Session
The session to cancel.
fun abortCrossDeviceSession(crossDeviceSession: CrossDeviceSession, resultHandler: ResultHandler<Unit, CrossDeviceSessionException>)
Cancels the CrossDeviceSession.
Parameters
cross Device Session
The session to cancel.
result Handler
A callback to handle the result of session abort.
If successful, the result is a MIRACLSuccess.
If an error occurs, the result is a MIRACLError with an exception describing issues with the operation.