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

Describes link content to be shared.

Use ShareLinkContent.Builder to build instances.

See documentation for best practices.

伸延:ShareContent
套件:model
執行個體方法
getContentDescription()

The description of the link. If not specified, this field is automatically populated by information scraped from the link, typically the title of the page.

public String getContentDescription()
Returns
The description of the link.
getContentTitle()

The title to display for this link.

public String getContentTitle()
Returns
The link title.
getImageUrl()

The URL of a picture to attach to this content.

public Uri getImageUrl()
Returns
The network URL of an image.
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.
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.
常數
CREATOR
public static final Creator CREATOR