ShareContent

Provides the base class for content to be shared. Contains all common methods for the different types of content.

Extends:Object
Implements:ShareModel
Package:model
Constructors
ShareContent(Builder)
protected ShareContent(Builder builder)
ParameterDescription
builder
ShareContent(Parcel)
protected ShareContent(Parcel in)
ParameterDescription
in
Instance Methods
getContentUrl()

URL for the content being shared. This URL will be checked for app link meta tags for linking in platform specific ways.

See documentation for App Links.

public Uri getContentUrl()
Returns
<a href='Uri'>Uri</a> representation of the content link.
getPeopleIds()

List of Ids for taggable people to tag with this content.

See documentation for

Taggable Friends.

public List getPeopleIds()
Returns
<a href='List'>List</a> of Ids for people to tag.
getPlaceId()

The Id for a place to tag with this content.

public String getPlaceId()
Returns
The Id for the place to tag.
getRef()

A value to be added to the referrer URL when a person follows a link from this shared content on feed.

public String getRef()
Returns
The ref for the content.
getShareHashtag()

Gets the ShareHashtag, if one has been set, for this content.

public ShareHashtag getShareHashtag()
Returns
The hashtag
describeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

public int describeContents()
Returns
A bitmask indicating the set of special object types marshalled by the Parcelable.
describeContents()
public int describeContents()
writeToParcel(Parcel, int)

Flatten this object in to a Parcel.

public void writeToParcel(Parcel dest, int flags)
ParameterDescription
destThe Parcel in which the object should be written.
flagsAdditional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
writeToParcel(Parcel, int)
public void writeToParcel(Parcel out, int flags)
ParameterDescription
out
flags