Android SDK Version
Enclosing class:

public static final class SharePhoto.Builder
extends ShareMedia.Builder<SharePhoto,SharePhoto.Builder>
Builder for the SharePhoto class.
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
SharePhotobuild()
Builds the object.
SharePhoto.BuilderreadFrom(SharePhoto model)
Reads the values from a ShareModel into the builder.
SharePhoto.BuildersetBitmap(Bitmap bitmap)
Sets the bitmap representation of the photo.
SharePhoto.BuildersetCaption(java.lang.String caption)
Sets the user generated caption for the photo.
SharePhoto.BuildersetImageUrl(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 the application.
Methods inherited from class com.facebook.share.model.
setParameter, setParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

Builder

public Builder()
Method Detail

setBitmap

public SharePhoto.Builder setBitmap(Bitmap bitmap)
Sets the bitmap representation of the photo.
Parameters:
bitmap - android.graphics.Bitmap representation of the photo.
Returns:
The builder.

setImageUrl

public SharePhoto.Builder setImageUrl(Uri imageUrl)
Sets the URL to the photo.
Parameters:
imageUrl - android.net.Uri that points to a network location or the location of the photo on disk.
Returns:
The builder.

setUserGenerated

public SharePhoto.Builder setUserGenerated(boolean userGenerated)
Sets whether the photo represented by this object was generated by the user or by the application.
Parameters:
userGenerated - Indication of whether the photo is user-generated.
Returns:
The builder.

setCaption

public SharePhoto.Builder setCaption(java.lang.String caption)
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).
Parameters:
caption - String of a SharePhoto
Returns:
The builder.

build

public SharePhoto build()
Description copied from interface: ShareBuilder
Builds the object.
Returns:
The built object.

readFrom

public SharePhoto.Builder readFrom(SharePhoto model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Overrides:
Parameters:
model - The source ShareModel
Returns:
The builder.