addMedium(ShareMedia)
Adds a medium to the content.
public Builder addMedium(ShareMedia medium)
參數 | 說明 |
---|---|
medium | ShareMedia to add. |
addMedia(List)
Adds multiple media to the content.
public Builder addMedia(List media)
參數 | 說明 |
---|---|
media | List of ShareMedia to add. |
build()
Builds the object.
public Object build()
build()
public ShareMediaContent build()
readFrom(ShareModel)
Reads the values from a ShareModel into the builder.
public ShareModelBuilder readFrom(ShareModel model)
參數 | 說明 |
---|---|
model | The source ShareModel |
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)
參數 | 說明 |
---|---|
parcel | The Parcel that contains the ShareModel. |
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
參數 | 說明 |
---|---|
parcel |
setMedia(List)
Replaces the media for the builder.
public Builder setMedia(List media)
參數 | 說明 |
---|---|
media | List of ShareMedia to add. |