ProximityPresentationSession

Represents a session with a mobile credential verifier using device retrieval as per ISO 18013-5.

Types

Link copied to clipboard
fun interface OnSessionTerminated

Functions

Link copied to clipboard
suspend fun init(activity: Activity)

Initializes the session.

Link copied to clipboard
suspend fun requestMobileCredentials(request: List<MobileCredentialRequest>, skipStatusCheck: Boolean = false): MobileCredentialResponse

This function uses the requested mobile credentials to construct and send a presentation request to the holder.

Link copied to clipboard
suspend fun terminateSession(sessionStatus: SessionStatus = SessionStatus.SessionTermination)

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