ShareContent
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

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

Mở rộng:Object
Triển khai:ShareModel
Gói:model
Xây dựng
ShareContent(Builder)
protected ShareContent(Builder builder)
Thông sốMô tả
builder
ShareContent(Parcel)
protected ShareContent(Parcel in)
Thông sốMô tả
in
Phương thức thực thể
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)
Thông sốMô tả
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)
Thông sốMô tả
out
flags