AuthUIDelegate

protocol AuthUIDelegate : NSObjectProtocol

@protocol FIRAuthUIDelegate A protocol to handle user interface interactions for Firebase Auth.

  • If implemented, this method will be invoked when Firebase Auth needs to display a view controller.

    Declaration

    Swift

    func presentViewController(_ viewControllerToPresent: Any!, animated flag: Bool, completion: (() -> Void)? = nil)

    Parameters

    viewControllerToPresent

    The view controller to be presented.

    flag

    Decides whether the view controller presentation should be animated or not.

    completion

    The block to execute after the presentation finishes. This block has no return value and takes no parameters.

  • If implemented, this method will be invoked when Firebase Auth needs to display a view controller.

    Declaration

    Swift

    func dismiss(animated flag: Bool, completion: (() -> Void)? = nil)

    Parameters

    flag

    Decides whether removing the view controller should be animated or not.

    completion

    The block to execute after the presentation finishes. This block has no return value and takes no parameters.