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 *)permissionsParameters
- delegate
A
LUOAuth2ViewControllerDelegatewhich 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.hnavigationDialog
Returns a UINavigationController containing this view controller. The navigation controller has a title and a Cancel button.
- (UINavigationController *)navigationDialogDiscussion
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