ScannedCode

sealed interface ScannedCode

What a scanned QR code (or an incoming deep link) asks the wallet to do: the standard request and offer links, plus the short wallet link the SDK's web verify box shows in its QR code (https://<host>/w/<id>). Other app-specific links are the app's to translate first.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class CredentialOffer(val uri: String) : ScannedCode

OpenID4VCI credential offer (openid-credential-offer://…) — add a credential.

Link copied to clipboard
data class PresentationRequest(val uri: String) : ScannedCode

A presentation request — OpenID4VP by reference (openid4vp://, haip://, eudi-openid4vp://, or any URL carrying request_uri=), an ISO 18013-7 mdoc:// engagement, or a wallet link from the SDK's web verify box (https://<host>/w/<id>, which the presentment screen looks up itself). Run it with the online presentment UI (WalletLinkPresentment.start on Android, OnlinePresentmentHost on iOS).

Link copied to clipboard
data class Unrecognized(val text: String) : ScannedCode

Anything else (e.g. a proximity mdoc: engagement meant for a verifier, or plain text).