-
- 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
Nested Classes Modifier and Type Class Description public final classSharePhoto.BuilderBuilder for the com.facebook.share.model.SharePhoto class.
-
Field Summary
Fields Modifier and Type Field Description private final Bitmapbitmapprivate final UriimageUrlprivate final booleanuserGeneratedprivate final Stringcaptionpublic final static Parcelable.Creator<SharePhoto>CREATOR
-
Method Summary
Modifier and Type Method Description 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
getParameters, writeToParcel -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBitmap
@Nullable() Bitmap getBitmap()
If the photo is resident in memory, this method supplies the data.
-
getImageUrl
@Nullable() Uri getImageUrl()
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
String getCaption()
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)
-
getMediaType
ShareMedia.Type getMediaType()
-
-
-
-