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
实例方法
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