public final class SharePhoto extends ShareMedia
Use SharePhoto.Builder to build instances
| Modifier and Type | Class and Description |
|---|---|
static class |
SharePhoto.Builder
Builder for the
SharePhoto class. |
ShareMedia.Type| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<SharePhoto> |
CREATOR |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.graphics.Bitmap |
getBitmap()
If the photo is resident in memory, this method supplies the data.
|
java.lang.String |
getCaption()
Gets the user generated caption.
|
android.net.Uri |
getImageUrl()
The URL to the photo.
|
ShareMedia.Type |
getMediaType() |
boolean |
getUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by the
application.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
getParameterspublic static final android.os.Parcelable.Creator<SharePhoto> CREATOR
@Nullable public android.graphics.Bitmap getBitmap()
Bitmap representation of the photo.@Nullable public android.net.Uri getImageUrl()
Uri that points to a network location or the location of the photo
on disk.public boolean getUserGenerated()
public java.lang.String getCaption()
public int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class ShareMediapublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class ShareMediapublic ShareMedia.Type getMediaType()
getMediaType in class ShareMedia