Builder for the SharePhotoContent interface.
扩展: | Builder |
应用安装包: | model |
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 |
setMedia(List)
Replaces the media for the builder.
public Builder setMedia(List media)
参数 | 描述 |
---|---|
media | List of ShareMedia to add. |