OAuth2CustomAuthorizerUI

public protocol OAuth2CustomAuthorizerUI

Platform-dependent login presenters that present custom login views must adopt this protocol.

  • This function is responsible of the login controller presentation.

    Declaration

    Swift

    func present(loginController: AnyObject, fromContext context: AnyObject?, animated: Bool) throws

    Parameters

    loginController

    The controller to present; the type is platform dependent

    fromContext

    The presenting context, typically another controller of platform-dependent type

    animated

    Whether the presentation should be animated

  • This function must dismiss the login controller.

    Declaration

    Swift

    func dismissLoginController(animated: Bool)

    Parameters

    animated

    Whether the dismissal should be animated