ShareContent.Builder
Une version plus récente de cette classe est disponible. Rendez-vous sur la dernière version.

Abstract builder for ShareContent

Prolonge :Object
Implémentations :ShareModelBuilder
Package :model
Constructeurs
ShareContent.Builder()
public ShareContent.Builder()
Méthodes d’instance
setContentUrl(Uri)

Set the URL for the content being shared.

public Builder setContentUrl(Uri contentUrl)
ParamètreDescription
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)
ParamètreDescription
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)
ParamètreDescription
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)
ParamètreDescription
refThe ref for the content.
Returns
The builder.
setShareHashtag(ShareHashtag)

Set the ShareHashtag for this content

public Builder setShareHashtag(ShareHashtag shareHashtag)
ParamètreDescription
shareHashtagThe hashtag for this content
Returns
The builder
readFrom(ShareModel)

Reads the values from a ShareModel into the builder.

public ShareModelBuilder readFrom(ShareModel model)
ParamètreDescription
modelThe source ShareModel
Returns
The builder.
readFrom(ShareContent)
public Builder readFrom(ShareContent content)
ParamètreDescription
content