Android SDK Version
All Implemented Interfaces:
com.facebook.share.ShareBuilder , com.facebook.share.model.ShareModelBuilder


public final class SharePhoto.Builder
extends ShareMedia.Builder<SharePhoto, SharePhoto.Builder>
                    
Nested Class Summary
Modifier and TypeClassDescription
public classSharePhoto.Builder.Companion
Constructor Summary
ConstructorDescription
SharePhoto.Builder()
Method Summary
Modifier and TypeMethodDescription
final SharePhoto.BuildersetBitmap(Bitmap bitmap) Sets the bitmap representation of the photo.
final SharePhoto.BuildersetImageUrl(Uri imageUrl) Sets the URL to the photo.
final SharePhoto.BuildersetUserGenerated(Boolean userGenerated) Sets whether the photo represented by this object was generated by the user or by the application.
final SharePhoto.BuildersetCaption(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.SharePhoto.Builder
setParameter, setParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

SharePhoto.Builder

SharePhoto.Builder()
Method Detail

setBitmap

 final SharePhoto.BuildersetBitmap(Bitmap bitmap)
Sets the bitmap representation of the photo.
Parameters:
bitmap - android.graphics.Bitmap representation of the photo.

setImageUrl

 final SharePhoto.BuildersetImageUrl(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.

setUserGenerated

 final SharePhoto.BuildersetUserGenerated(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.

setCaption

 final SharePhoto.BuildersetCaption(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).

build

SharePhotobuild()
Builds the object.

readFrom

SharePhoto.BuilderreadFrom(SharePhoto model)
Reads the values from a ShareModel into the builder.
Parameters:
model - The source ShareModel