Android SDK Version
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>
                    
Constructor Summary
ConstructorDescription
ShareContent.Builder()
Method Summary
Modifier and TypeMethodDescription
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.
Methods inherited from class com.facebook.share.model.ShareModelBuilder
build
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ShareContent.Builder

ShareContent.Builder()
Method Detail

setContentUrl

 final BsetContentUrl(Uri contentUrl)
Set the URL for the content being shared.
Parameters:
contentUrl - android.net.Uri representation of the content link.

setPeopleIds

 final BsetPeopleIds(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 BsetPlaceId(String placeId)
Set the Id for a place to tag with this content.
Parameters:
placeId - The Id for the place to tag.

setPageId

 final BsetPageId(String pageId)
Set the Id of the Facebook page this share is associated with.
Parameters:
pageId - The Id for the Page

setRef

 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.
Parameters:
ref - The ref for the content.

setShareHashtag

 final BsetShareHashtag(ShareHashtag shareHashtag)
Set the ShareHashtag for this content
Parameters:
shareHashtag - The hashtag for this content

readFrom

BreadFrom(M content)
Reads the values from a ShareModel into the builder.
Parameters:
content - The source ShareModel