FUIDynamicAuthenticationDelegate
public protocol FUIDynamicAuthenticationDelegate : AnyObject
The delegate protocol for the authentication screen.
-
The delegate method that is invoked when user tapped the Done button on the
FUIDynamicAuthenticationScreen
.Declaration
Swift
func verify(_ controller: FUIDynamicAuthenticationScreen, informationStrings: [String], completion: @escaping ((_ errorMessage: String?) -> Void))
Parameters
controller
The
FUIDynamicAuthenticationScreen
instance.informationStrings
The array of information strings user entered.
completion
When the information is verified, the completion block should be called. If
errorMessage
parameter of the completion block is not nil, it indicates error in the verification process, a banner message will be displayed with the error message. Otherwise, the verification is considered successful. -
The delegate method that is invoked when user tapped the cancel button. Basically, the implementation should dismiss the controller.
Declaration
Swift
func didCancel(_ controller: FUIDynamicAuthenticationScreen)
Parameters
controller
The
FUIDynamicAuthenticationScreen
instance.