Android SDK Version
All Implemented Interfaces:
android.os.Parcelable , com.facebook.share.model.ShareModel


public final class SharePhoto
extends ShareMedia
Describes a photo for sharing.
Use SharePhoto.Builder to build instances
Nested Class Summary
Modifier and TypeClassDescription
public final classSharePhoto.Builder
Field Summary
Modifier and TypeFieldDescription
private final Bitmapbitmap
private final UriimageUrl
private final booleanuserGenerated
private final Stringcaption
public final static Parcelable.Creator<SharePhoto>CREATOR
Method Summary
Modifier and TypeMethodDescription
BitmapgetBitmap() If the photo is resident in memory, this method supplies the data.
UrigetImageUrl() The URL to the photo.
booleangetUserGenerated() Specifies whether the photo represented by this object was generated by the user or by theapplication.
StringgetCaption() Gets the user generated caption.
intdescribeContents()
voidwriteToParcel(Parcel out, int flags)
ShareMedia.TypegetMediaType()
Methods inherited from class com.facebook.share.model.ShareMedia
describeContents, getMediaType, getParameters, writeToParcel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getBitmap

@Nullable() BitmapgetBitmap()
If the photo is resident in memory, this method supplies the data.

getImageUrl

@Nullable() UrigetImageUrl()
The URL to the photo.

getUserGenerated

 boolean getUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by theapplication.

getCaption

StringgetCaption()
Gets the user generated caption. Note that the 'caption' must come from the user, as pre-filledcontent is forbidden by the Platform Policies (2.3).

describeContents

 int describeContents()

writeToParcel

 void writeToParcel(Parcel out, int flags)