-
- 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 class
SharePhoto.Builder
Builder for the com.facebook.share.model.SharePhoto class.
public class
SharePhoto.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Bitmap
bitmap
private final Uri
imageUrl
private final Boolean
userGenerated
private final String
caption
private final ShareMedia.Type
mediaType
-
Method Summary
Modifier and Type Method Description final Bitmap
getBitmap()
If the photo is resident in memory, this method supplies the data. final Uri
getImageUrl()
The URL to the photo. final Boolean
getUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by the application. final String
getCaption()
Gets the user generated caption. ShareMedia.Type
getMediaType()
Integer
describeContents()
Unit
writeToParcel(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)
-
-
-
-