Context
public struct Context
The context provided to the user interaction delegate for selecting an account.
-
The set of accounts available for the operation.
Declaration
Swift
public let accounts: Set<Account>
-
The array of authenticators available for the operation.
Declaration
Swift
public let authenticators: [AuthenticatorInformation]
-
A message to be displayed to the user in case of transaction confirmation.
Note
The exact format of the message may depend on the server, e.g. a simple String or a JSON representation.Declaration
Swift
public let transactionConfirmationData: Data?
-
The operation that requires account selection.
Declaration
Swift
public let operation: Operation
-
ONLY FOR AUTOMATED TESTING PURPOSES; DO NOT USE IN PRODUCTION CODE **
Creates a new context.
Declaration
Swift
public init(accounts: Set<Account>, authenticators: [AuthenticatorInformation], transactionConfirmationData: Data? = nil, operation: Operation, policyComplianceInformation: [PolicyComplianceInformation] = [])
Parameters
accounts
The set of accounts available for the operation.
authenticators
The array of authenticators available for the operation.
transactionConfirmationData
A message to be displayed to the user in case of transaction confirmation.
operation
The operation that requires account selection.
policyComplianceInformation
The list of
PolicyComplianceInformation
containing information about which account and authenticator is policy compliant for the current operation. The default value is an empty list.