Android SDK Version
All Implemented Interfaces:

public final class SharePhoto
extends ShareMedia
Describes a photo for sharing. Use SharePhoto.Builder to build instances
Nested Class Summary
Modifier and TypeClass and Description
static class SharePhoto.Builder
Builder for the SharePhoto class.
Nested classes/interfaces inherited from class com.facebook.share.model.
ShareMedia.Type
Field Summary
Modifier and TypeField and Description
static <any>CREATOR 
Method Summary
Modifier and TypeMethod and Description
intdescribeContents() 
BitmapgetBitmap()
If the photo is resident in memory, this method supplies the data.
java.lang.StringgetCaption()
Gets the user generated caption.
UrigetImageUrl()
The URL to the photo.
ShareMedia.TypegetMediaType() 
booleangetUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by the application.
voidwriteToParcel(Parcel out, int flags) 
Methods inherited from class com.facebook.share.model.
getParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

CREATOR

public static final <any> CREATOR
Method Detail

getBitmap

public Bitmap getBitmap()
If the photo is resident in memory, this method supplies the data.
Returns:
android.graphics.Bitmap representation of the photo.

getImageUrl

public Uri getImageUrl()
The URL to the photo.
Returns:
android.net.Uri that points to a network location or the location of the photo on disk.

getUserGenerated

public boolean getUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by the application.
Returns:
Indication of whether the photo is user-generated.

getCaption

public java.lang.String getCaption()
Gets the user generated caption. Note that the 'caption' must come from the user, as pre-filled content is forbidden by the Platform Policies (2.3).
Returns:
The user generated caption.

describeContents

public int describeContents()
Overrides:

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Overrides:

getMediaType

public ShareMedia.Type getMediaType()
Specified by: