-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public class ShareMediaContent.Builder extends ShareContent.Builder<ShareMediaContent, ShareMediaContent.Builder>
Builder for the SharePhotoContent interface.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ShareMedia>media
-
Method Summary
Modifier and Type Method Description ShareMediaContent.BuildersetMedia(@Nullable() List<ShareMedia> media)Replaces the media for the builder. ShareMediaContent.BuilderaddMedium(@Nullable() ShareMedia medium)Adds a medium to the content. ShareMediaContent.BuilderaddMedia(@Nullable() List<ShareMedia> media)Adds multiple media to the content. ShareMediaContentbuild()Builds the object. ShareMediaContent.BuilderreadFrom(ShareMediaContent 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
-
setMedia
ShareMediaContent.Builder setMedia(@Nullable() List<ShareMedia> media)
Replaces the media for the builder.
- Parameters:
media- java.util.List of com.facebook.share.model.ShareMedia to add.
-
addMedium
ShareMediaContent.Builder addMedium(@Nullable() ShareMedia medium)
Adds a medium to the content.
- Parameters:
medium- com.facebook.share.model.ShareMedia to add.
-
addMedia
ShareMediaContent.Builder addMedia(@Nullable() List<ShareMedia> media)
Adds multiple media to the content.
- Parameters:
media- java.util.List of com.facebook.share.model.ShareMedia to add.
-
build
ShareMediaContent build()
Builds the object.
-
readFrom
ShareMediaContent.Builder readFrom(ShareMediaContent model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-