Update Google+ integration.
[UPDATED] Google+ SDK to 1.1.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// GooglePlusSignInViewController.h
|
||||
// GooglePlusSampleSignInViewController.h
|
||||
//
|
||||
// Copyright 2012 Google Inc.
|
||||
//
|
||||
@@ -17,24 +17,39 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "GooglePlusSignIn.h"
|
||||
#import "GPPSignIn.h"
|
||||
|
||||
@class GooglePlusSignInButton;
|
||||
@class GPPSignInButton;
|
||||
|
||||
// A view controller for the Google+ sign-in button which initiates a standard
|
||||
// OAuth 2.0 flow and provides an access token and a refresh token. A "Sign out"
|
||||
// button is provided to allow users to sign out of this application.
|
||||
@interface GooglePlusSampleSignInViewController : UIViewController<
|
||||
GooglePlusSignInDelegate>
|
||||
GPPSignInDelegate>
|
||||
|
||||
// The button that handles Google+ sign-in.
|
||||
@property (retain, nonatomic) IBOutlet GooglePlusSignInButton *signInButton;
|
||||
@property (retain, nonatomic) IBOutlet GPPSignInButton *signInButton;
|
||||
// A label to display the result of the sign-in action.
|
||||
@property (retain, nonatomic) IBOutlet UILabel *signInAuthStatus;
|
||||
// A label to display the signed-in user's display name.
|
||||
@property (retain, nonatomic) IBOutlet UILabel *signInDisplayName;
|
||||
// A button to sign out of this application.
|
||||
@property (retain, nonatomic) IBOutlet UIButton *signOutButton;
|
||||
// A switch for whether to request for Google+ History's
|
||||
// https://www.googleapis.com/auth/plus.moments.write scope.
|
||||
@property (retain, nonatomic) IBOutlet UISwitch *plusMomentsWriteScope;
|
||||
// A switch for whether to request
|
||||
// https://www.googleapis.com/auth/userinfo.email scope to get user's email
|
||||
// address after the sign-in action.
|
||||
@property (retain, nonatomic) IBOutlet UISwitch *userinfoEmailScope;
|
||||
|
||||
// Called when the user presses the "Sign out" button.
|
||||
- (IBAction)signOut:(id)sender;
|
||||
// Called when the user toggles Google+ History's
|
||||
// https://www.googleapis.com/auth/plus.moments.write scope.
|
||||
- (IBAction)plusMomentsWriteScopeToggle:(id)sender;
|
||||
// Called when the user toggles the
|
||||
// https://www.googleapis.com/auth/userinfo.email scope.
|
||||
- (IBAction)userinfoEmailScopeToggle:(id)sender;
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user