ShareContent.Builder
这个类有新版本。查看 最新版本。

Abstract builder for ShareContent

扩展:Object
执行:ShareModelBuilder
应用安装包:model
构造函数
ShareContent.Builder()
public ShareContent.Builder()
实例方法
setContentUrl(Uri)

Set the URL for the content being shared.

public Builder setContentUrl(Uri contentUrl)
参数描述
contentUrlUri representation of the content link.
Returns
The builder.
setPeopleIds(List)

Set the list of Ids for taggable people to tag with this content.

public Builder setPeopleIds(List peopleIds)
参数描述
peopleIdsList of Ids for people to tag.
Returns
The builder.
setPlaceId(String)

Set the Id for a place to tag with this content.

public Builder setPlaceId(String placeId)
参数描述
placeIdThe Id for the place to tag.
Returns
The builder.
setRef(String)

Set the value to be added to the referrer URL when a person follows a link from this shared content on feed.

public Builder setRef(String ref)
参数描述
refThe ref for the content.
Returns
The builder.
setShareHashtag(ShareHashtag)

Set the ShareHashtag for this content

public Builder setShareHashtag(ShareHashtag shareHashtag)
参数描述
shareHashtagThe hashtag for this content
Returns
The builder
readFrom(ShareModel)

Reads the values from a ShareModel into the builder.

public ShareModelBuilder readFrom(ShareModel model)
参数描述
modelThe source ShareModel
Returns
The builder.
readFrom(ShareContent)
public Builder readFrom(ShareContent content)
参数描述
content