terminateSession

suspend fun terminateSession(sessionStatus: SessionStatus = SessionStatus.SessionTermination)

Terminate the session explicitly, send a status code to the holder, and close data transport.

Note that this method will also trigger the callback provided by the onSessionTerminated parameter in MobileCredentialHolder.createProximityPresentationSession.

Parameters

sessionStatus

The status code sent to the verifier.

Throws

If the SDK API is called before the SDK is initialized.

If the session is in an idle state and is terminated with the provided status code.