Google+ Platform for iOS

GPPDeepLink Class Reference


Overview

This class handles a deep link within a share posted on Google+.

For more information on deep links, see http://developers.google.com/+/mobile/ios/share .

Public Member Functions

(NSString *) - deepLinkID
 The deep-link ID in GPPDeepLink that was passed to the app.
(NSString *) - source
 This instance method indicates where the user came from before arriving in your app.

Static Public Member Functions

(void) + setDelegate:
 Sets the delegate to handle the deep link.
(GPPDeepLink *) + readDeepLinkAfterInstall
 Returns a GPPDeepLink for your app to handle, or nil if not found.
(GPPDeepLink *) + handleURL:sourceApplication:annotation:
 This method should be called from your UIApplicationDelegate's application:openURL:sourceApplication:annotation.

Member Function Documentation

+ (void) setDelegate: (id< GPPDeepLinkDelegate >)  delegate

Sets the delegate to handle the deep link.

Returns a GPPDeepLink for your app to handle, or nil if not found.

The deep-link ID can be obtained from GPPDeepLink. It is stored when a user clicks a link to your app from a Google+ post, but hasn't yet installed your app. The user will be redirected to the App Store to install your app. This method should be called on or near your app launch to take the user to deep-link ID within your app. The delegate will be called if set and if a deep link is found.

+ (GPPDeepLink *) handleURL: (NSURL *)  url
sourceApplication: (NSString *)  sourceApplication
annotation: (id)  annotation 

This method should be called from your UIApplicationDelegate's application:openURL:sourceApplication:annotation.

Returns GooglePlusDeepLink if GooglePlusDeepLink handled this URL, nil otherwise. The delegate will be called if set and if a deep link is found. Also see handleURL:sourceApplication:annotation: in GPPURLHandler.

- (NSString *) deepLinkID

The deep-link ID in GPPDeepLink that was passed to the app.

- (NSString *) source

This instance method indicates where the user came from before arriving in your app.

This method is provided for you to collect engagement metrics. For the possible values, see http://developers.google.com/+/mobile/ios/source-values .

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.