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
credential
The mobile credential that the wallet is being added for
succeeded
True if the wallet is added successfully or false otherwise
error
If 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
handler
A callback function that allows the delegate to continue with the wallet migration or cancel the provisioning.