PredixAuthenticationViewDelegate
@objc public protocol PredixAuthenticationViewDelegate: NSObjectProtocol
An delegate that works with the PredixAuthenticationView that allows an implementer to be notified when certain actions take place during the authentication process
-
Called when authentication is requested by the user
Overriding this delegate method requires an implementer to take control of all authentication actions for the authentication manager. The PredixAuthenticationView will not execute its own sign-in actions when this delegate method is implemented.
- authenticationView: The authentication view that is invoking the delegate
Declaration
Swift
@objc optional func overrideAuthentication(authenticationView: PredixAuthenticationView)
-
Provides the delegate with the ability to do an action when authentication is completed.
- authenticationView: The authentication view that is invoking the delegate
- success: Indicates is authentication was successful or not
- error: If an error was encountered during authentication the error property will give an indication why authentication failed or encountered an error
Declaration
Swift
@objc optional func authenticationComplete(authenticationView: PredixAuthenticationView, success: Bool, error: Error?)