MobileWalletFactory

actual class MobileWalletFactory

Android MobileWallet factory backed by Android KeyStore and an app-private SQLDelight database.

Parameters

context

Android context used to open the wallet database.

expect class MobileWalletFactory

Platform factory that wires MobileWallet to Android or iOS storage and key infrastructure.

actual class MobileWalletFactory

iOS MobileWallet factory backed by Keychain/Secure Enclave managed keys, the Crypto2 software-key fallback, and a native SQLDelight database.

Constructors

Link copied to clipboard
constructor(context: Context, interactionContextProvider: () -> FragmentActivity? = { null })
constructor()

Functions

Link copied to clipboard
actual suspend fun create(config: MobileWalletConfig): MobileWallet

Creates an Android mobile wallet for config.

actual suspend fun create(config: MobileWalletConfig, clientIdTrustConfiguration: ClientIdTrustConfiguration): MobileWallet

Creates a mobile wallet with explicit verifier client-ID trust configuration.

expect suspend fun create(config: MobileWalletConfig = MobileWalletConfig()): MobileWallet

Creates a mobile wallet instance for the current platform.

expect suspend fun create(config: MobileWalletConfig, clientIdTrustConfiguration: ClientIdTrustConfiguration): MobileWallet

Creates a mobile wallet with explicit verifier client-ID trust configuration.

actual suspend fun create(config: MobileWalletConfig): MobileWallet

Creates an iOS mobile wallet using native SQLDelight storage and the default iOS platform key provider.

actual suspend fun create(config: MobileWalletConfig, clientIdTrustConfiguration: ClientIdTrustConfiguration): MobileWallet

Creates a mobile wallet with explicit verifier client-ID trust configuration.