Android SDK Version
All Implemented Interfaces:

public final class ShareMessengerMediaTemplateContent
extends ShareContent<ShareMessengerMediaTemplateContent,ShareMessengerMediaTemplateContent.Builder>
Provides a data model class for Messenger Media Template content to be shared.
Nested Class Summary
Modifier and TypeClass and Description
static class ShareMessengerMediaTemplateContent.Builder
Builder for the ShareMessengerMediaTemplateContent interface.
static class ShareMessengerMediaTemplateContent.MediaType
The media type (image or video) for this media template content.
Field Summary
Modifier and TypeField and Description
static <any>CREATOR 
Method Summary
Modifier and TypeMethod and Description
intdescribeContents() 
java.lang.StringgetAttachmentId()
Get the attachmentID of the item to share.
ShareMessengerActionButtongetButton()
Get the action button to show below the media.
ShareMessengerMediaTemplateContent.MediaTypegetMediaType()
Get the media type (image or video) for this content.
UrigetMediaUrl()
Get the Facebook URL for this piece of media.
voidwriteToParcel(Parcel dest, int flags) 
Methods inherited from class com.facebook.share.model.
getContentUrl, getPageId, getPeopleIds, getPlaceId, getRef, getShareHashtag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

CREATOR

public static final <any> CREATOR
Method Detail

getMediaType

public ShareMessengerMediaTemplateContent.MediaType getMediaType()
Get the media type (image or video) for this content.

getAttachmentId

public java.lang.String getAttachmentId()
Get the attachmentID of the item to share.

getMediaUrl

public Uri getMediaUrl()
Get the Facebook URL for this piece of media.

getButton

public ShareMessengerActionButton getButton()
Get the action button to show below the media.

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)