Android SDK Version
All Implemented Interfaces:

Deprecated. 
Sharing to Messenger via the SDK is unsupported. https://developers.facebook.com/docs/messenger-platform/changelog/#20190610. Sharing should be performed by the native share sheet."
@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 TypeClass and Description
static class ShareMessengerGenericTemplateContent.Builder
Deprecated. 
static class ShareMessengerGenericTemplateContent.ImageAspectRatio
Deprecated. 
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
Deprecated. 
 
Constructor Summary
ModifierConstructor and Description
protected ShareMessengerGenericTemplateContent(ShareMessengerGenericTemplateContent.Builder builder)
Deprecated. 
 
Method Summary
Modifier and TypeMethod and Description
intdescribeContents()
Deprecated. 
 
ShareMessengerGenericTemplateElementgetGenericTemplateElement()
Deprecated. 
Get a generic template element with a title, optional subtitle, optional image, etc.
ShareMessengerGenericTemplateContent.ImageAspectRatiogetImageAspectRatio()
Deprecated. 
Get the aspect ratio for when the image is rendered in the generic template bubble after being shared.
booleangetIsSharable()
Deprecated. 
Get whether or not this generic template message can be shared again after the initial share.
voidwriteToParcel(Parcel out, int flags)
Deprecated. 
 
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
Deprecated. 
Constructor Detail

ShareMessengerGenericTemplateContent

protected ShareMessengerGenericTemplateContent(ShareMessengerGenericTemplateContent.Builder builder)
Deprecated. 
Method Detail

getIsSharable

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

getImageAspectRatio

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

getGenericTemplateElement

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

describeContents

public int describeContents()
Deprecated. 

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Deprecated.