-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public final class ShareVideoContent.Builder extends ShareContent.Builder<ShareVideoContent, ShareVideoContent.Builder>
Builder for the com.facebook.share.model.ShareVideoContent interface.
-
-
Field Summary
Fields Modifier and Type Field Description private StringcontentDescriptionprivate StringcontentTitleprivate SharePhotopreviewPhotoprivate ShareVideovideo
-
Method Summary
Modifier and Type Method Description ShareVideoContent.BuildersetContentDescription(@Nullable() String contentDescription)Sets the description of the video. ShareVideoContent.BuildersetContentTitle(@Nullable() String contentTitle)Sets the title to display for this video. ShareVideoContent.BuildersetPreviewPhoto(@Nullable() SharePhoto previewPhoto)Sets the photo to be used as a preview for the video. ShareVideoContent.BuildersetVideo(@Nullable() ShareVideo video)Sets the video to be shared. ShareVideoContentbuild()Builds the object. ShareVideoContent.BuilderreadFrom(ShareVideoContent 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
-
setContentDescription
ShareVideoContent.Builder setContentDescription(@Nullable() String contentDescription)
Sets the description of the video.
- Parameters:
contentDescription- The description of the video.
-
setContentTitle
ShareVideoContent.Builder setContentTitle(@Nullable() String contentTitle)
Sets the title to display for this video.
- Parameters:
contentTitle- The video title.
-
setPreviewPhoto
ShareVideoContent.Builder setPreviewPhoto(@Nullable() SharePhoto previewPhoto)
Sets the photo to be used as a preview for the video.
- Parameters:
previewPhoto- Preview com.facebook.share.model.SharePhoto for the content.
-
setVideo
ShareVideoContent.Builder setVideo(@Nullable() ShareVideo video)
Sets the video to be shared.
- Parameters:
video- com.facebook.share.model.ShareVideo
-
build
ShareVideoContent build()
Builds the object.
-
readFrom
ShareVideoContent.Builder readFrom(ShareVideoContent model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-