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