Android SDK Version
All Implemented Interfaces:
android.os.Parcelable , com.facebook.share.model.ShareModel


public abstract class ShareContent<P extends ShareContent, E extends ShareContent.Builder>
 implements ShareModel
Provides the base class for content to be shared. Contains all common methods for the different types of content.
Nested Class Summary
Modifier and TypeClassDescription
public abstract classShareContent.Builder
Field Summary
Modifier and TypeFieldDescription
private final UricontentUrl
private final List<String>peopleIds
private final StringplaceId
private final StringpageId
private final Stringref
Method Summary
Modifier and TypeMethodDescription
UrigetContentUrl() URL for the content being shared.
List<String>getPeopleIds() List of Ids for taggable people to tag with this content.
StringgetPlaceId() The Id for a place to tag with this content.
StringgetPageId() For shares into Messenger, this pageID will be used to map the app to page and attachattribution to the share.
StringgetRef() A value to be added to the referrer URL when a person follows a link from this shared contenton feed.
ShareHashtaggetShareHashtag() Gets the ShareHashtag, if one has been set, for this content.
intdescribeContents()
voidwriteToParcel(Parcel out, int flags)
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getContentUrl

@Nullable() UrigetContentUrl()
URL for the content being shared. This URL will be checked for app link meta tags for linkingin platform specific ways.
See documentation for AppLinks.

getPeopleIds

@Nullable() List<String> getPeopleIds()
List of Ids for taggable people to tag with this content.
See documentation for TaggableFriends.

getPlaceId

@Nullable() StringgetPlaceId()
The Id for a place to tag with this content.

getPageId

@Nullable() StringgetPageId()
For shares into Messenger, this pageID will be used to map the app to page and attachattribution to the share.

getRef

@Nullable() StringgetRef()
A value to be added to the referrer URL when a person follows a link from this shared contenton feed.

getShareHashtag

@Nullable() ShareHashtaggetShareHashtag()
Gets the ShareHashtag, if one has been set, for this content.

describeContents

 int describeContents()

writeToParcel

 void writeToParcel(Parcel out, int flags)