AccountSelector
public protocol AccountSelector
The object in charge of selecting an account. This protocol must be conformed by the user of the SDK only when username-less out-of-band authentication is required with multiple accounts.
-
The account selection interaction. The implementing object must ask the user to choose one of the accounts exposed by the
AccountSelectionContext
and provide the choice to theAccountSelectionHandler
. This object will be invoked in theDispatchQueue.main
thread.Declaration
Swift
func selectAccount(context: AccountSelectionContext, handler: AccountSelectionHandler)
Parameters
context
the object containing the list of existing authenticators.
handler
the object that must be notified with the selection result.