Android SDK Version
All Implemented Interfaces:

public final class ShareMessengerGenericTemplateContent
extends ShareContent<ShareMessengerGenericTemplateContent,ShareMessengerGenericTemplateContent.Builder>
Provide a model for sharing a generic template element to Messenger. This wrapper element allows specifying whether or not the bubble is sharable and what aspect to render the images. See https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic for more details.
Nested Class Summary
Modifier and TypeClass and Description
static class ShareMessengerGenericTemplateContent.Builder
static class ShareMessengerGenericTemplateContent.ImageAspectRatio
The aspect ratio for when the image is rendered in the generic template bubble after being shared
Field Summary
Modifier and TypeField and Description
static <any>CREATOR 
Constructor Summary
ModifierConstructor and Description
protected ShareMessengerGenericTemplateContent(ShareMessengerGenericTemplateContent.Builder builder) 
Method Summary
Modifier and TypeMethod and Description
intdescribeContents() 
ShareMessengerGenericTemplateElementgetGenericTemplateElement()
Get a generic template element with a title, optional subtitle, optional image, etc.
ShareMessengerGenericTemplateContent.ImageAspectRatiogetImageAspectRatio()
Get the aspect ratio for when the image is rendered in the generic template bubble after being shared.
booleangetIsSharable()
Get whether or not this generic template message can be shared again after the initial share.
voidwriteToParcel(Parcel out, 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
Constructor Detail

ShareMessengerGenericTemplateContent

protected ShareMessengerGenericTemplateContent(ShareMessengerGenericTemplateContent.Builder builder)
Method Detail

getIsSharable

public boolean getIsSharable()
Get whether or not this generic template message can be shared again after the initial share.

getImageAspectRatio

public ShareMessengerGenericTemplateContent.ImageAspectRatio getImageAspectRatio()
Get the aspect ratio for when the image is rendered in the generic template bubble after being shared.

getGenericTemplateElement

public ShareMessengerGenericTemplateElement getGenericTemplateElement()
Get a generic template element with a title, optional subtitle, optional image, etc.

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)