Android SDK Version
  • java.lang.Object
    • com.facebook.share.model.ShareMessengerGenericTemplateElement
All Implemented Interfaces:

public final class ShareMessengerGenericTemplateElement
extends java.lang.Object
implements ShareModel
Provide a model for sharing a generic template element to Messenger. This allows specifying title, subtitle, image, default action, and any other button. Title is required. 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 ShareMessengerGenericTemplateElement.Builder
Field Summary
Modifier and TypeField and Description
static <any>CREATOR 
Method Summary
Modifier and TypeMethod and Description
intdescribeContents() 
ShareMessengerActionButtongetButton()
Get the button shown on the shared generic template.
ShareMessengerActionButtongetDefaultAction()
Get the default action executed when this shared generic template is tapped.
UrigetImageUrl()
Get the image url that will be downloaded and rendered at the top of the generic template.
java.lang.StringgetSubtitle()
Get the rendered subtitle for the shared generic template element.
java.lang.StringgetTitle()
Get the rendered title for the shared generic template element.
voidwriteToParcel(Parcel dest, int flags) 
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

getTitle

public java.lang.String getTitle()
Get the rendered title for the shared generic template element.

getSubtitle

public java.lang.String getSubtitle()
Get the rendered subtitle for the shared generic template element.

getImageUrl

public Uri getImageUrl()
Get the image url that will be downloaded and rendered at the top of the generic template.

getDefaultAction

public ShareMessengerActionButton getDefaultAction()
Get the default action executed when this shared generic template is tapped.

getButton

public ShareMessengerActionButton getButton()
Get the button shown on the shared generic template.

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)