Update Google+ integration.
[UPDATED] Google+ SDK to 1.1.0.
This commit is contained in:
@@ -19,18 +19,22 @@
|
||||
#import <MessageUI/MFMailComposeViewController.h>
|
||||
#import <MessageUI/MessageUI.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "GooglePlusShare.h"
|
||||
#import "GPPShare.h"
|
||||
|
||||
// A view controller for the Google+ share dialog which contains a text field
|
||||
// to prefill the user comment, and a text field for an optional URL to share.
|
||||
// A Google+ share button is provided to launch the share dialog.
|
||||
@interface GooglePlusSampleShareViewController : UIViewController<
|
||||
GooglePlusShareDelegate,
|
||||
GPPShareDelegate,
|
||||
UITextFieldDelegate,
|
||||
UIActionSheetDelegate,
|
||||
MFMailComposeViewControllerDelegate> {
|
||||
// The Google+ share object to manage the share dialog.
|
||||
GooglePlusShare *share_;
|
||||
GPPShare *share_;
|
||||
// Whether the keyboard is visible or not.
|
||||
BOOL keyboardVisible_;
|
||||
// The text field being edited.
|
||||
UITextField *activeField_;
|
||||
}
|
||||
|
||||
// The text to prefill the user comment in the share dialog.
|
||||
@@ -41,7 +45,36 @@
|
||||
@property (retain, nonatomic) IBOutlet UILabel *shareStatus;
|
||||
// A toolbar to share via Google+ or email.
|
||||
@property (retain, nonatomic) IBOutlet UIToolbar *shareToolbar;
|
||||
// A switch to toggle Google+ share with deep linking.
|
||||
@property (retain, nonatomic) IBOutlet UISwitch *attachDeepLinkSwitch;
|
||||
// The deep-link ID to be attached with the Google+ share to qualify as
|
||||
// a deep-link share.
|
||||
@property (retain, nonatomic) IBOutlet UITextField *deepLinkID;
|
||||
// The share's title.
|
||||
@property (retain, nonatomic) IBOutlet UITextField *deepLinkTitle;
|
||||
// The share's description.
|
||||
@property (retain, nonatomic) IBOutlet UITextField *deepLinkDescription;
|
||||
// The share's thumbnail URL.
|
||||
@property (retain, nonatomic) IBOutlet UITextField *deepLinkThumbnailURL;
|
||||
// The share view.
|
||||
@property (retain, nonatomic) IBOutlet UIScrollView *shareScrollView;
|
||||
@property (retain, nonatomic) IBOutlet UIView *shareView;
|
||||
// Labels for Google+ share sample.
|
||||
@property (retain, nonatomic) IBOutlet UILabel *attachDeepLinkDataLabel;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *urlToShareLabel;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *prefillTextLabel;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *deepLinkIDLabel;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *deepLinkTitleLabel;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *deepLinkDescriptionLabel;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *deepLinkThumbnailURLLabel;
|
||||
@property (retain, nonatomic) IBOutlet UIButton *shareButton;
|
||||
@property (retain, nonatomic) IBOutlet UISwitch *urlForDeepLinkMetadataSwitch;
|
||||
@property (retain, nonatomic) IBOutlet UILabel *urlForDeepLinkMetadataLabel;
|
||||
|
||||
// Called when the switch for deep-link data is toggled.
|
||||
- (IBAction)deepLinkSwitchToggle:(id)sender;
|
||||
// Called when the switch for metadata from URL preview is toggled.
|
||||
- (IBAction)urlForDeepLinkMetadataSwitchToggle:(id)sender;
|
||||
// Called when the share button is pressed.
|
||||
- (IBAction)shareButton:(id)sender;
|
||||
// Called when the toolbar share button is pressed.
|
||||
|
Reference in New Issue
Block a user