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
controllerThe
FUIDynamicAuthenticationScreeninstance.informationStringsThe array of information strings user entered.
completionWhen the information is verified, the completion block should be called. If
errorMessageparameter 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
controllerThe
FUIDynamicAuthenticationScreeninstance.