ShareMediaContent.Builder
有此級別的更新版本。前往查看 最新版本。

Builder for the SharePhotoContent interface.

延伸:Builder
套件:model
建構函式
ShareMediaContent.Builder()
public ShareMediaContent.Builder()
執行個體方法
addMedium(ShareMedia)

Adds a medium to the content.

public Builder addMedium(ShareMedia medium)
參數說明
mediumShareMedia to add.
Returns
The builder.
addMedia(List)

Adds multiple media to the content.

public Builder addMedia(List media)
參數說明
mediaList of ShareMedia to add.
Returns
The builder.
build()

Builds the object.

public Object build()
Returns
The built object.
build()
public ShareMediaContent build()
readFrom(ShareModel)

Reads the values from a ShareModel into the builder.

public ShareModelBuilder readFrom(ShareModel model)
參數說明
modelThe source ShareModel
Returns
The builder.
readFrom(Parcel)

Reads the values from a parcel into the builder. The parcel must have packaged an instance of the ShareModel that came from the same type of builder.

public ShareModelBuilder readFrom(Parcel parcel)
參數說明
parcelThe Parcel that contains the ShareModel.
Returns
The builder.
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
參數說明
parcel
setMedia(List)

Replaces the media for the builder.

public Builder setMedia(List media)
參數說明
mediaList of ShareMedia to add.
Returns
The builder.