Android SDK Version
Enclosing class:

public static final class ShareStoryContent.Builder
extends ShareContent.Builder<ShareStoryContent,ShareStoryContent.Builder>
Builder for the interface.
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
ShareStoryContentbuild()
Builds the object.
ShareStoryContent.BuilderreadFrom(ShareStoryContent model)
Reads the values from a ShareModel into the builder.
ShareStoryContent.BuildersetAttributionLink(java.lang.String attributionLink)
Set the attribution link
ShareStoryContent.BuildersetBackgroundAsset(ShareMedia backgroundAsset)
Set the Background Asset to display
ShareStoryContent.BuildersetBackgroundColorList(java.util.List<java.lang.String> backgroundColorList)
Set the background color list to display
ShareStoryContent.BuildersetStickerAsset(SharePhoto stickerAsset)
Set the Sticker Asset to display
Methods inherited from class com.facebook.share.model.
setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

Builder

public Builder()
Method Detail

setBackgroundAsset

public ShareStoryContent.Builder setBackgroundAsset(ShareMedia backgroundAsset)
Set the Background Asset to display
Parameters:
backgroundAsset - the background asset of the story, could be a photo or video
Returns:
The builder.

setStickerAsset

public ShareStoryContent.Builder setStickerAsset(SharePhoto stickerAsset)
Set the Sticker Asset to display
Parameters:
stickerAsset - the sticker asset of the story, should be a photo
Returns:
The builder.

setBackgroundColorList

public ShareStoryContent.Builder setBackgroundColorList(java.util.List<java.lang.String> backgroundColorList)
Set the background color list to display
Parameters:
backgroundColorList - a list of color which will be draw from top to bottom
Returns:
The builder.

setAttributionLink

public ShareStoryContent.Builder setAttributionLink(java.lang.String attributionLink)
Set the attribution link
Parameters:
attributionLink - link that set by 3rd party app
Returns:
The builder.

build

public ShareStoryContent build()
Description copied from interface: ShareBuilder
Builds the object.
Returns:
The built object.

readFrom

public ShareStoryContent.Builder readFrom(ShareStoryContent model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Overrides:
Parameters:
model - The source ShareModel
Returns:
The builder.