-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public final class SharePhoto.Builder extends ShareMedia.Builder<SharePhoto, SharePhoto.Builder>
Builder for the com.facebook.share.model.SharePhoto class.
-
-
Method Summary
Modifier and Type Method Description BitmapgetBitmap()SharePhoto.BuildersetBitmap(@Nullable() Bitmap bitmap)Sets the bitmap representation of the photo. UrigetImageUrl()SharePhoto.BuildersetImageUrl(@Nullable() Uri imageUrl)Sets the URL to the photo. SharePhoto.BuildersetUserGenerated(boolean userGenerated)Sets whether the photo represented by this object was generated by the user or by theapplication. SharePhoto.BuildersetCaption(@Nullable() String caption)Sets the user generated caption for the photo. SharePhotobuild()Builds the object. SharePhoto.BuilderreadFrom(SharePhoto model)Reads the values from a ShareModel into the builder. -
Methods inherited from class com.facebook.share.model.ShareMedia.Builder
readFrom, setParameter, setParameters -
Methods inherited from class com.facebook.share.model.ShareModelBuilder
readFrom -
Methods inherited from class com.facebook.share.ShareBuilder
build -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setBitmap
SharePhoto.Builder setBitmap(@Nullable() Bitmap bitmap)
Sets the bitmap representation of the photo.
- Parameters:
bitmap- android.graphics.Bitmap representation of the photo.
-
getImageUrl
Uri getImageUrl()
-
setImageUrl
SharePhoto.Builder setImageUrl(@Nullable() Uri imageUrl)
Sets the URL to the photo.
- Parameters:
imageUrl- android.net.Uri that points to a network location or the location ofthe photo on disk.
-
setUserGenerated
SharePhoto.Builder setUserGenerated(boolean userGenerated)
Sets whether the photo represented by this object was generated by the user or by theapplication.
- Parameters:
userGenerated- Indication of whether the photo is user-generated.
-
setCaption
SharePhoto.Builder setCaption(@Nullable() String caption)
Sets the user generated caption for the photo. Note that the 'caption' must come from theuser, as pre-filled content is forbidden by the Platform Policies (2.3).
- Parameters:
caption- java.lang.String of a com.facebook.share.model.SharePhoto
-
build
SharePhoto build()
Builds the object.
-
readFrom
SharePhoto.Builder readFrom(SharePhoto model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-