LUOAuth2ViewController Class Reference
Inherits from | UIViewController |
Conforms to | UIWebViewDelegate |
Declared in | LUOAuth2ViewController.h LUOAuth2ViewController.m |
Overview
LUOAuth2ViewController
allows you to request authorization from LevelUp users using the OAuth2 protocol.
LUOAuth2ViewController
just contains a UIWebView
. If you would like to display the view inside
a dialog with a navigation bar and Cancel button, use navigationDialog
.
Instance Methods
initWithDelegate:email:permissions:
Initializes a LUOAuth2ViewController
.
- (instancetype)initWithDelegate:(id<LUOAuth2ViewControllerDelegate>)delegate email:(NSString *)email permissions:(NSArray *)permissions
Parameters
- delegate
A
LUOAuth2ViewControllerDelegate
which will be notified of changes of state.
The email address of the authorizing user (required).
- permission
An array of permissions to authorize. See LUConstants.h for a list of possible permissions (required).
Discussion
Initializes a LUOAuth2ViewController
.
Declared In
LUOAuth2ViewController.h
navigationDialog
Returns a UINavigationController containing this view controller. The navigation controller has a title and a Cancel button.
- (UINavigationController *)navigationDialog
Discussion
Returns a UINavigationController containing this view controller. The navigation controller has a title and a Cancel button.
When the Cancel button is selected, the delegate’s OAuth2ViewControllerWasCancelled:
method will
be called (if defined).
Declared In
LUOAuth2ViewController.h