ProximityPresentationSession

class ProximityPresentationSession(    deviceEngagementString: String,     onSessionTerminated: ProximityPresentationSession.OnSessionTerminated? = null,     dataTransportFactory: <Error class: unknown class> = DataTransportFactory.Default(),     keyStore: <Error class: unknown class>,     qrCodeHelper: <Error class: unknown class> = QrCodeHelper(),     val trustedIssuerCertificateStore: <Error class: unknown class>,     handover: <Error class: unknown class> = Handover.QR,     sessionEncryptionFactory: <Error class: unknown class> = SessionEncryptionFactory(),     ec: <Error class: unknown class> = Ec.getDefaultInstance(),     sha256: <Error class: unknown class> = Sha.Sha256(),     clock: Clock = Clock.System)

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

Constructors

Link copied to clipboard
constructor(    deviceEngagementString: String,     onSessionTerminated: ProximityPresentationSession.OnSessionTerminated? = null,     dataTransportFactory: <Error class: unknown class> = DataTransportFactory.Default(),     keyStore: <Error class: unknown class>,     qrCodeHelper: <Error class: unknown class> = QrCodeHelper(),     trustedIssuerCertificateStore: <Error class: unknown class>,     handover: <Error class: unknown class> = Handover.QR,     sessionEncryptionFactory: <Error class: unknown class> = SessionEncryptionFactory(),     ec: <Error class: unknown class> = Ec.getDefaultInstance(),     sha256: <Error class: unknown class> = Sha.Sha256(),     clock: Clock = Clock.System)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface OnSessionTerminated
Link copied to clipboard
sealed interface SessionState

Properties

Link copied to clipboard
val trustedIssuerCertificateStore: <Error class: unknown class>

Functions

Link copied to clipboard
suspend fun init(activity: Activity)
Link copied to clipboard
suspend fun requestMobileCredentials(request: List<<Error class: unknown class>>): <Error class: unknown class>

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: <Error class: unknown class> = SessionStatus.SessionTermination)

Terminate the session explicitly, send a status code to the holder, and close data transport. Note that method will also trigger the callback provided by onSessionTerminate(_:).