-
- All Implemented Interfaces:
-
android.os.Parcelable,com.facebook.share.model.ShareModel
public final class SharePhoto extends ShareMedia<SharePhoto, SharePhoto.Builder>
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.
public classSharePhoto.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Bitmapbitmapprivate final UriimageUrlprivate final BooleanuserGeneratedprivate final Stringcaptionprivate final ShareMedia.TypemediaType
-
Method Summary
Modifier and Type Method Description final BitmapgetBitmap()If the photo is resident in memory, this method supplies the data. final UrigetImageUrl()The URL to the photo. final BooleangetUserGenerated()Specifies whether the photo represented by this object was generated by the user or by the application. final StringgetCaption()Gets the user generated caption. ShareMedia.TypegetMediaType()IntegerdescribeContents()UnitwriteToParcel(Parcel out, Integer flags)-
-
Method Detail
-
getBitmap
final Bitmap getBitmap()
If the photo is resident in memory, this method supplies the data.
-
getImageUrl
final Uri getImageUrl()
The URL to the photo.
-
getUserGenerated
final Boolean getUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by the application.
-
getCaption
final 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).
-
getMediaType
ShareMedia.Type getMediaType()
-
describeContents
Integer describeContents()
-
writeToParcel
Unit writeToParcel(Parcel out, Integer flags)
-
-
-
-