ShareContent
有此級別的更新版本。前往查看 最新版本。

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

伸延:Object
實作ShareModel
套件:model
建構函式
ShareContent(Builder)
protected ShareContent(Builder builder)
參數說明
builder
ShareContent(Parcel)
protected ShareContent(Parcel in)
參數說明
in
執行個體方法
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.
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)
參數說明
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)
參數說明
out
flags