-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public class SharePhotoContent.Builder extends ShareContent.Builder<SharePhotoContent, SharePhotoContent.Builder>
Builder for the SharePhotoContent interface.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<SharePhoto>photos
-
Method Summary
Modifier and Type Method Description SharePhotoContent.BuildersetPhotos(@Nullable() List<SharePhoto> photos)Replaces the photos for the builder. SharePhotoContent.BuilderaddPhoto(@Nullable() SharePhoto photo)Adds a photo to the content. SharePhotoContent.BuilderaddPhotos(@Nullable() List<SharePhoto> photos)Adds multiple photos to the content. SharePhotoContentbuild()Builds the object. SharePhotoContent.BuilderreadFrom(SharePhotoContent model)Reads the values from a ShareModel into the builder. -
Methods inherited from class com.facebook.share.model.ShareContent.Builder
readFrom, setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag -
Methods inherited from class com.facebook.share.model.ShareModelBuilder
readFrom -
Methods inherited from class com.facebook.share.ShareBuilder
build -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setPhotos
SharePhotoContent.Builder setPhotos(@Nullable() List<SharePhoto> photos)
Replaces the photos for the builder.
- Parameters:
photos- java.util.List of com.facebook.share.model.SharePhotos to add.
-
addPhoto
SharePhotoContent.Builder addPhoto(@Nullable() SharePhoto photo)
Adds a photo to the content.
- Parameters:
photo- com.facebook.share.model.SharePhoto to add.
-
addPhotos
SharePhotoContent.Builder addPhotos(@Nullable() 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 model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-