setBitmap(Bitmap)
Sets the bitmap representation of the photo.
public Builder setBitmap(Bitmap bitmap)
パラメーター | 説明 |
---|---|
bitmap | Bitmap representation of the photo. |
setImageUrl(Uri)
Sets the URL to the photo.
public Builder setImageUrl(Uri imageUrl)
パラメーター | 説明 |
---|---|
imageUrl | Uri that points to a network location or the location of the photo on disk. |
setUserGenerated(boolean)
Sets whether the photo represented by this object was generated by the user or by the application.
public Builder setUserGenerated(boolean userGenerated)
パラメーター | 説明 |
---|---|
userGenerated | Indication of whether the photo is user-generated. |
setCaption(String)
Sets the user generated caption for the photo. Note that the 'caption' must come from the user, as pre-filled content is forbidden by the Platform Policies (2.3).
public Builder setCaption(String caption)
パラメーター | 説明 |
---|---|
caption | String of a SharePhoto |
build()
Builds the object.
public Object build()
build()
public SharePhoto build()
readFrom(ShareModel)
Reads the values from a ShareModel into the builder.
public ShareModelBuilder readFrom(ShareModel model)
パラメーター | 説明 |
---|---|
model | The source ShareModel |