Versão do Android SDK
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
Modifier and TypeClassDescription
public final classSharePhoto.Builder
public classSharePhoto.Companion
Field Summary
Modifier and TypeFieldDescription
private final Bitmapbitmap
private final UriimageUrl
private final BooleanuserGenerated
private final Stringcaption
private final ShareMedia.TypemediaType
Method Summary
Modifier and TypeMethodDescription
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)
Methods inherited from class com.facebook.share.model.SharePhoto
getParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getBitmap

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

getImageUrl

 final UrigetImageUrl()
The URL to the photo.

getUserGenerated

 final BooleangetUserGenerated()
Specifies whether the photo represented by this object was generated by the user or by the application.

getCaption

 final StringgetCaption()
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).

describeContents

IntegerdescribeContents()

writeToParcel

UnitwriteToParcel(Parcel out, Integer flags)