-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public abstract class ShareContent.Builder<P extends ShareContent, E extends ShareContent.Builder> implements ShareModelBuilder<P, E>
Abstract builder for com.facebook.share.model.ShareContent
-
-
Method Summary
Modifier and Type Method Description EsetContentUrl(@Nullable() Uri contentUrl)Set the URL for the content being shared. EsetPeopleIds(@Nullable() List<String> peopleIds)Set the list of Ids for taggable people to tag with this content. EsetPlaceId(@Nullable() String placeId)Set the Id for a place to tag with this content. EsetPageId(@Nullable() String pageId)Set the Id of the Facebook page this share is associated with. EsetRef(@Nullable() String ref)Set the value to be added to the referrer URL when a person follows a link from this sharedcontent on feed. EsetShareHashtag(@Nullable() ShareHashtag shareHashtag)Set the ShareHashtag for this content EreadFrom(P content)Reads the values from a ShareModel into the builder. -
-
Method Detail
-
setContentUrl
E setContentUrl(@Nullable() Uri contentUrl)
Set the URL for the content being shared.
- Parameters:
contentUrl- android.net.Uri representation of the content link.
-
setPeopleIds
E setPeopleIds(@Nullable() List<String> peopleIds)
Set the list of Ids for taggable people to tag with this content.
- Parameters:
peopleIds- java.util.List of Ids for people to tag.
-
setPlaceId
E setPlaceId(@Nullable() String placeId)
Set the Id for a place to tag with this content.
- Parameters:
placeId- The Id for the place to tag.
-
setPageId
E setPageId(@Nullable() String pageId)
Set the Id of the Facebook page this share is associated with.
- Parameters:
pageId- The Id for the Page
-
setRef
E setRef(@Nullable() String ref)
Set the value to be added to the referrer URL when a person follows a link from this sharedcontent on feed.
- Parameters:
ref- The ref for the content.
-
setShareHashtag
E setShareHashtag(@Nullable() ShareHashtag shareHashtag)
Set the ShareHashtag for this content
- Parameters:
shareHashtag- The hashtag for this content
-
-
-
-