public static final class SharePhoto.Builder extends ShareMedia.Builder<SharePhoto,SharePhoto.Builder>
SharePhoto class.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SharePhoto |
build()
Builds the object.
|
SharePhoto.Builder |
readFrom(SharePhoto model)
Reads the values from a ShareModel into the builder.
|
SharePhoto.Builder |
setBitmap(android.graphics.Bitmap bitmap)
Sets the bitmap representation of the photo.
|
SharePhoto.Builder |
setCaption(java.lang.String caption)
Sets the user generated caption for the photo.
|
SharePhoto.Builder |
setImageUrl(android.net.Uri imageUrl)
Sets the URL to the photo.
|
SharePhoto.Builder |
setUserGenerated(boolean userGenerated)
Sets whether the photo represented by this object was generated by the user or by the
application.
|
setParameter, setParameterspublic SharePhoto.Builder setBitmap(@Nullable android.graphics.Bitmap bitmap)
bitmap - Bitmap representation of the photo.public SharePhoto.Builder setImageUrl(@Nullable android.net.Uri imageUrl)
imageUrl - Uri that points to a network location or the location
of the photo on disk.public SharePhoto.Builder setUserGenerated(boolean userGenerated)
userGenerated - Indication of whether the photo is user-generated.public SharePhoto.Builder setCaption(@Nullable java.lang.String caption)
caption - String of a SharePhotopublic SharePhoto build()
ShareBuilderpublic SharePhoto.Builder readFrom(SharePhoto model)
ShareModelBuilderreadFrom in interface ShareModelBuilder<SharePhoto,SharePhoto.Builder>readFrom in class ShareMedia.Builder<SharePhoto,SharePhoto.Builder>model - The source ShareModel