-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public abstract class ShareContent.Builder<M extends ShareContent<M, B>, B extends ShareContent.Builder<M, B>> implements ShareModelBuilder<M, B>
Abstract builder for com.facebook.share.model.ShareContent
-
-
Constructor Summary
Constructors Constructor Description ShareContent.Builder()
-
Method Summary
Modifier and Type Method Description final BsetContentUrl(Uri contentUrl)Set the URL for the content being shared. final BsetPeopleIds(List<String> peopleIds)Set the list of Ids for taggable people to tag with this content. final BsetPlaceId(String placeId)Set the Id for a place to tag with this content. final BsetPageId(String pageId)Set the Id of the Facebook page this share is associated with. final BsetRef(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 BsetShareHashtag(ShareHashtag shareHashtag)Set the ShareHashtag for this content BreadFrom(M content)Reads the values from a ShareModel into the builder. -
-
Method Detail
-
setContentUrl
final B setContentUrl(Uri contentUrl)
Set the URL for the content being shared.
- Parameters:
contentUrl- android.net.Uri representation of the content link.
-
setPeopleIds
final B 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 B 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 B setPageId(String pageId)
Set the Id of the Facebook page this share is associated with.
- Parameters:
pageId- The Id for the Page
-
setRef
final B 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 B setShareHashtag(ShareHashtag shareHashtag)
Set the ShareHashtag for this content
- Parameters:
shareHashtag- The hashtag for this content
-
-
-
-