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

@Deprecated() 
public final class ShareMessengerGenericTemplateElement
 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 TypeClassDescription
public classShareMessengerGenericTemplateElement.Builder
Field Summary
Modifier and TypeFieldDescription
private final Stringtitle
private final Stringsubtitle
private final UriimageUrl
private final ShareMessengerActionButtondefaultAction
private final ShareMessengerActionButtonbutton
public final static Parcelable.Creator<ShareMessengerGenericTemplateElement>CREATOR
Method Summary
Modifier and TypeMethodDescription
StringgetTitle() Get the rendered title for the shared generic template element.
StringgetSubtitle() Get the rendered subtitle for the shared generic template element.
UrigetImageUrl() Get the image url that will be downloaded and rendered at the top of the generic template.
ShareMessengerActionButtongetDefaultAction() Get the default action executed when this shared generic template is tapped.
ShareMessengerActionButtongetButton() Get the button shown on the shared generic template.
intdescribeContents()
voidwriteToParcel(Parcel dest, int flags)
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getTitle

StringgetTitle()
Get the rendered title for the shared generic template element.

getSubtitle

StringgetSubtitle()
Get the rendered subtitle for the shared generic template element.

getImageUrl

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

getDefaultAction

ShareMessengerActionButtongetDefaultAction()
Get the default action executed when this shared generic template is tapped.

getButton

ShareMessengerActionButtongetButton()
Get the button shown on the shared generic template.

describeContents

 int describeContents()

writeToParcel

 void writeToParcel(Parcel dest, int flags)