OAuth2CustomAuthorizer

public class OAuth2CustomAuthorizer : OAuth2CustomAuthorizerUI

A macOS-specific implementation of the OAuth2CustomAuthorizerUI protocol which simply present the login controller as a sheet over another controller.

  • Initializer.

    Declaration

    Swift

    public init()

OAuth2CustomAuthorizerUI

  • Present the given login controller as a sheet over a parent controller.

    Throws an error if called on macOS 10.9 or earlier.

    Declaration

    Swift

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

    Parameters

    loginController

    The controller to present as a sheet

    fromContext

    The controller to which present the login controller. Should be a NSViewController

    animated

    Whether the presentation should be animated.

  • Dismiss the presented login controller if any.

    Throws an error if called on macOS 10.9 or earlier.

    Declaration

    Swift

    public func dismissLoginController(animated: Bool)

    Parameters

    animated

    Whether the dismissal should be animated.