public final class

PlusShare

extends Object
java.lang.Object
   ↳ com.google.android.gms.plus.PlusShare

Class Overview

Utility class for including resources in posts shared on Google+ through an ACTION_SEND intent.

Summary

Nested Classes
class PlusShare.Builder  
Constants
String EXTRA_CONTENT_DEEP_LINK_ID Used as a string extra field in ACTION_SEND intents to specify a resource to be shared on Google+.
String EXTRA_CONTENT_DEEP_LINK_METADATA Used as a bundle extra field in ACTION_SEND intents to describe a resource to be shared on Google+.
String KEY_CONTENT_DEEP_LINK_METADATA_DESCRIPTION Bundle key used for the String description of the resource shared on Google+.
String KEY_CONTENT_DEEP_LINK_METADATA_THUMBNAIL_URL Bundle key used for the String thumbnail URL of the resource shared on Google+.
String KEY_CONTENT_DEEP_LINK_METADATA_TITLE Bundle key used for the String title of the resource shared on Google+.
String PARAM_CONTENT_DEEP_LINK_ID The query parameter containing the deep-link ID.
Public Methods
static String getDeepLinkId(Intent intent)
Get the incoming deep link.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String EXTRA_CONTENT_DEEP_LINK_ID

Used as a string extra field in ACTION_SEND intents to specify a resource to be shared on Google+.

Constant Value: "com.google.android.apps.plus.CONTENT_DEEP_LINK_ID"

public static final String EXTRA_CONTENT_DEEP_LINK_METADATA

Used as a bundle extra field in ACTION_SEND intents to describe a resource to be shared on Google+. You should only set this extra with EXTRA_CONTENT_DEEP_LINK_ID, and when the deep-link ID is not a URI.

Constant Value: "com.google.android.apps.plus.CONTENT_DEEP_LINK_METADATA"

public static final String KEY_CONTENT_DEEP_LINK_METADATA_DESCRIPTION

Bundle key used for the String description of the resource shared on Google+. This key is used in the EXTRA_CONTENT_DEEP_LINK_METADATA bundle.

Constant Value: "description"

public static final String KEY_CONTENT_DEEP_LINK_METADATA_THUMBNAIL_URL

Bundle key used for the String thumbnail URL of the resource shared on Google+. This key is used in the EXTRA_CONTENT_DEEP_LINK_METADATA bundle.

Constant Value: "thumbnailUrl"

public static final String KEY_CONTENT_DEEP_LINK_METADATA_TITLE

Bundle key used for the String title of the resource shared on Google+. This key is used in the EXTRA_CONTENT_DEEP_LINK_METADATA bundle.

Constant Value: "title"

public static final String PARAM_CONTENT_DEEP_LINK_ID

The query parameter containing the deep-link ID. This is populated when a deep link is clicked from a Google+ post.

Constant Value: "deep_link_id"

Public Methods

public static String getDeepLinkId (Intent intent)

Get the incoming deep link.

Parameters
intent The intent passed to your activity, containing a deep_link_id.
Returns
  • The deep-link ID.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.