public static final class ShareVideoContent.Builder extends ShareContent.Builder<ShareVideoContent,ShareVideoContent.Builder>
ShareVideoContent
interface.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ShareVideoContent |
build()
Builds the object.
|
ShareVideoContent.Builder |
readFrom(android.os.Parcel parcel)
Reads the values from a parcel into the builder.
|
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
public ShareVideoContent.Builder setContentDescription(java.lang.String contentDescription)
contentDescription
- The description of the video.public ShareVideoContent.Builder setContentTitle(java.lang.String contentTitle)
contentTitle
- The video title.public ShareVideoContent.Builder setPreviewPhoto(SharePhoto previewPhoto)
previewPhoto
- Preview SharePhoto
for the content.public ShareVideoContent.Builder setVideo(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 ShareModelpublic ShareVideoContent.Builder readFrom(android.os.Parcel parcel)
ShareModelBuilder
parcel
- The Parcel that contains the ShareModel.