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()
-
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) throwsParameters
loginControllerThe controller to present as a sheet
fromContextThe controller to which present the login controller. Should be a
NSViewControlleranimatedWhether 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
animatedWhether the dismissal should be animated.
View on GitHub
Install in Dash
OAuth2CustomAuthorizer Class Reference