AuthnDelegate
public protocol AuthnDelegate : AnyObject
A delegate that contains the functions for managing authn operations.
Since
3.0.0-
This is invoked when an end user confirmation is required to proceed with the transaction data.
Declaration
Swift
func authn(_ authn: D1Authn, shouldConfirmTransactionData transactionData: [String: String], proceedHandler: (@escaping() -> Void), cancelHandler: (@escaping() -> Void))
Parameters
authn
The D1Authn object to inform the delegate about the transaction data.
transactionData
The details of the ongoing transaction.
proceedHandler
The closure to be called to inform the SDK to proceed with the transaction.
cancelHandler
The closure to be called to cancel the operation.
-
This is invoked when an end user verification is requested via Touch ID.
- Return: The message string to be displayed.
Declaration
Swift
func authnTouchIDOperationPrompt(_ authn: D1Authn) -> String
Parameters
authn
The D1Authn object to inform the delegate about the transaction data.