WalletProvisioningDelegate
public protocol WalletProvisioningDelegate : AnyObject
A delegate for implementing handlers on Wallet provisioning for a given Mobile Credential
-
Function called when wallet provisioning request has completed successfully with succeeded flag and a non-nil error to indicate failure
Declaration
Swift
func onWalletProvisioningCompleted(_ wallet: Wallet, succeeded: Bool, error: WalletProvisioningError?)Parameters
credentialThe mobile credential that the wallet is being added for
succeededTrue if the wallet is added successfully or false otherwise
errorIf non-nil, the provisioning request failed for a given error
-
Function called back on the delegate if a Wallet migration to a new device is detected, given the delegate a chance to choose to continue with the migration or cancel.
Declaration
Swift
func onWalletMigrationDetected(_ handler: @escaping WalletMigrationHandler)Parameters
handlerA callback function that allows the delegate to continue with the wallet migration or cancel the provisioning.
WalletProvisioningDelegate Protocol Reference