Builder for the SharePhotoContent interface.
Hereda de: | Builder |
Paquete: | model |
addMedium(ShareMedia)
Adds a medium to the content.
public Builder addMedium(ShareMedia medium)
Parámetro | Descripción |
---|---|
medium | ShareMedia to add. |
addMedia(List)
Adds multiple media to the content.
public Builder addMedia(List media)
Parámetro | Descripción |
---|---|
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)
Parámetro | Descripción |
---|---|
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)
Parámetro | Descripción |
---|---|
parcel | The Parcel that contains the ShareModel. |
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
Parámetro | Descripción |
---|---|
parcel |
setMedia(List)
Replaces the media for the builder.
public Builder setMedia(List media)
Parámetro | Descripción |
---|---|
media | List of ShareMedia to add. |