WalletUriPresentmentActivity

abstract class WalletUriPresentmentActivity : UriSchemePresentmentActivity

Online presentment for a presentation request link — OpenID4VP by reference (openid4vp://, …) or ISO 18013-7 (mdoc://), e.g. a website's "share with wallet" button or a scanned QR (see com.wallet.ScannedCode). The SDK runs the flow (fetch + verify the request, consent, respond); this wires it to the wallet's store, branding and reader trust.

Extend it, supply sdk, and register the subclass in the manifest for the request schemes:

class PresentmentActivity : WalletUriPresentmentActivity() {
override val sdk get() = MyApp.sdk
}

Cancel closes the screen at once. Override onPresentmentClosed to tell your verifier.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val sdk: WalletSdk

The wallet whose documents are presented.

Functions

Link copied to clipboard
open override fun finish()
Link copied to clipboard
open suspend override fun getSettings(): UriSchemePresentmentActivity.Settings

Wires the flow to the wallet's store, branding and reader trust. @suppress

Link copied to clipboard
open fun onPresentmentClosed(requestUri: String?)

Called once when the screen closes after a request was started (shared, cancelled or failed), with the request link. Default: nothing.