-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public final class ShareStoryContent.Builder extends ShareContent.Builder<ShareStoryContent, ShareStoryContent.Builder>
Builder for the ShareStoryContent.
-
-
Constructor Summary
Constructors Constructor Description ShareStoryContent.Builder()
-
Method Summary
Modifier and Type Method Description final ShareStoryContent.BuildersetBackgroundAsset(ShareMedia<?, ?> backgroundAsset)Set the Background Asset to display final ShareStoryContent.BuildersetStickerAsset(SharePhoto stickerAsset)Set the Sticker Asset to display final ShareStoryContent.BuildersetBackgroundColorList(List<String> backgroundColorList)Set the background color list to display final ShareStoryContent.BuildersetAttributionLink(String attributionLink)Set the attribution link ShareStoryContentbuild()Builds the object. ShareStoryContent.BuilderreadFrom(ShareStoryContent model)Reads the values from a ShareModel into the builder. -
-
Method Detail
-
setBackgroundAsset
final 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
-
setStickerAsset
final ShareStoryContent.Builder setStickerAsset(SharePhoto stickerAsset)
Set the Sticker Asset to display
- Parameters:
stickerAsset- the sticker asset of the story, should be a photo
-
setBackgroundColorList
final ShareStoryContent.Builder setBackgroundColorList(List<String> backgroundColorList)
Set the background color list to display
- Parameters:
backgroundColorList- a list of color which will be draw from top to bottom
-
setAttributionLink
final ShareStoryContent.Builder setAttributionLink(String attributionLink)
Set the attribution link
- Parameters:
attributionLink- link that set by 3rd party app
-
build
ShareStoryContent build()
Builds the object.
-
readFrom
ShareStoryContent.Builder readFrom(ShareStoryContent model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-