-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public final class SharePhotoContent.Builder extends ShareContent.Builder<SharePhotoContent, SharePhotoContent.Builder>
Builder for the SharePhotoContent interface.
-
-
Constructor Summary
Constructors Constructor Description SharePhotoContent.Builder()
-
Method Summary
Modifier and Type Method Description final SharePhotoContent.BuilderaddPhoto(SharePhoto photo)Adds a photo to the content. final SharePhotoContent.BuilderaddPhotos(List<SharePhoto> photos)Adds multiple photos to the content. SharePhotoContentbuild()Builds the object. SharePhotoContent.BuilderreadFrom(SharePhotoContent content)Reads the values from a ShareModel into the builder. final SharePhotoContent.BuildersetPhotos(List<SharePhoto> photos)Replaces the photos for the builder. -
-
Method Detail
-
addPhoto
final SharePhotoContent.Builder addPhoto(SharePhoto photo)
Adds a photo to the content.
- Parameters:
photo- com.facebook.share.model.SharePhoto to add.
-
addPhotos
final SharePhotoContent.Builder addPhotos(List<SharePhoto> photos)
Adds multiple photos to the content.
- Parameters:
photos- java.util.List of com.facebook.share.model.SharePhotos to add.
-
build
SharePhotoContent build()
Builds the object.
-
readFrom
SharePhotoContent.Builder readFrom(SharePhotoContent content)
Reads the values from a ShareModel into the builder.
- Parameters:
content- The source ShareModel
-
setPhotos
final SharePhotoContent.Builder setPhotos(List<SharePhoto> photos)
Replaces the photos for the builder.
- Parameters:
photos- java.util.List of com.facebook.share.model.SharePhotos to add.
-
-
-
-