public static final class ShareVideoContent.Builder extends ShareContent.Builder<ShareVideoContent,ShareVideoContent.Builder>
ShareVideoContent
interface.Constructor and Description |
---|
ShareVideoContent.Builder() |
Modifier and Type | Method and Description |
---|---|
ShareVideoContent |
build()
Builds the object.
|
ShareVideoContent.Builder |
readFrom(ShareVideoContent model)
Reads the values from a ShareModel into the builder.
|
ShareVideoContent.Builder |
setContentDescription(java.lang.String contentDescription)
Sets the description of the video.
|
ShareVideoContent.Builder |
setContentTitle(java.lang.String contentTitle)
Sets the title to display for this video.
|
ShareVideoContent.Builder |
setPreviewPhoto(SharePhoto previewPhoto)
Sets the photo to be used as a preview for the video.
|
ShareVideoContent.Builder |
setVideo(ShareVideo video)
Sets the video to be shared.
|
setContentUrl, setPeopleIds, setPlaceId, setRef, setShareHashtag
public ShareVideoContent.Builder setContentDescription(@Nullable java.lang.String contentDescription)
contentDescription
- The description of the video.public ShareVideoContent.Builder setContentTitle(@Nullable java.lang.String contentTitle)
contentTitle
- The video title.public ShareVideoContent.Builder setPreviewPhoto(@Nullable SharePhoto previewPhoto)
previewPhoto
- Preview SharePhoto
for the content.public ShareVideoContent.Builder setVideo(@Nullable ShareVideo video)
video
- ShareVideo
public ShareVideoContent build()
ShareBuilder
public ShareVideoContent.Builder readFrom(ShareVideoContent model)
ShareModelBuilder
readFrom
in interface ShareModelBuilder<ShareVideoContent,ShareVideoContent.Builder>
readFrom
in class ShareContent.Builder<ShareVideoContent,ShareVideoContent.Builder>
model
- The source ShareModel