-
- 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
Nested Classes Modifier and Type Class Description public abstract classShareContent.BuilderAbstract builder for com.facebook.share.model.ShareContent
-
Method Summary
Modifier and Type Method Description 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)-
-
Method Detail
-
getContentUrl
@Nullable() Uri getContentUrl()
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() String getPlaceId()
The Id for a place to tag with this content.
-
getPageId
@Nullable() String getPageId()
For shares into Messenger, this pageID will be used to map the app to page and attachattribution to the share.
-
getRef
@Nullable() String getRef()
A value to be added to the referrer URL when a person follows a link from this shared contenton feed.
-
getShareHashtag
@Nullable() ShareHashtag getShareHashtag()
Gets the ShareHashtag, if one has been set, for this content.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel out, int flags)
-
-
-
-