Android SDK Version
All Implemented Interfaces:
android.os.Parcelable , com.facebook.share.model.ShareModel

@Deprecated() 
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 TypeClassDescription
public enumShareMessengerGenericTemplateContent.ImageAspectRatio
The aspect ratio for when the image is rendered in the generic template bubble after beingshared
public classShareMessengerGenericTemplateContent.Builder
Method Summary
Modifier and TypeMethodDescription
booleangetIsSharable() Get whether or not this generic template message can be shared again after the initial share.
ShareMessengerGenericTemplateContent.ImageAspectRatiogetImageAspectRatio() Get the aspect ratio for when the image is rendered in the generic template bubble after beingshared.
ShareMessengerGenericTemplateElementgetGenericTemplateElement() Get a generic template element with a title, optional subtitle, optional image, etc.
intdescribeContents()
voidwriteToParcel(Parcel out, int flags)
Methods inherited from class com.facebook.share.model.ShareContent
describeContents, getContentUrl, getPageId, getPeopleIds, getPlaceId, getRef, getShareHashtag, writeToParcel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getIsSharable

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

getImageAspectRatio

ShareMessengerGenericTemplateContent.ImageAspectRatiogetImageAspectRatio()
Get the aspect ratio for when the image is rendered in the generic template bubble after beingshared.

getGenericTemplateElement

ShareMessengerGenericTemplateElementgetGenericTemplateElement()
Get a generic template element with a title, optional subtitle, optional image, etc.

describeContents

 int describeContents()

writeToParcel

 void writeToParcel(Parcel out, int flags)