public abstract class ShareContent<P extends ShareContent,E extends ShareContent.Builder> extends java.lang.Object implements ShareModel
| Modifier and Type | Class and Description |
|---|---|
static class |
ShareContent.Builder<P extends ShareContent,E extends ShareContent.Builder>
Abstract builder for
ShareContent |
| Modifier | Constructor and Description |
|---|---|
protected |
ShareContent(android.os.Parcel in) |
protected |
ShareContent(ShareContent.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.net.Uri |
getContentUrl()
URL for the content being shared.
|
java.lang.String |
getPageId()
For shares into Messenger, this pageID will be used to map the app to page and attach
attribution to the share.
|
java.util.List<java.lang.String> |
getPeopleIds()
List of Ids for taggable people to tag with this content.
|
java.lang.String |
getPlaceId()
The Id for a place to tag with this content.
|
java.lang.String |
getRef()
A value to be added to the referrer URL when a person follows a link from this shared
content on feed.
|
ShareHashtag |
getShareHashtag()
Gets the ShareHashtag, if one has been set, for this content.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
protected ShareContent(ShareContent.Builder builder)
protected ShareContent(android.os.Parcel in)
@Nullable public android.net.Uri getContentUrl()
Uri representation of the content link.@Nullable public java.util.List<java.lang.String> getPeopleIds()
List of Ids for people to tag.@Nullable public java.lang.String getPlaceId()
@Nullable public java.lang.String getPageId()
@Nullable public java.lang.String getRef()
@Nullable public ShareHashtag getShareHashtag()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.Parcelable