-
- 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
Nested Classes Modifier and Type Class Description public classShareMessengerGenericTemplateElement.BuilderBuilder for the ShareMessengerGenericTemplateElement class.
-
Field Summary
Fields Modifier and Type Field Description private final Stringtitleprivate final Stringsubtitleprivate final UriimageUrlprivate final ShareMessengerActionButtondefaultActionprivate final ShareMessengerActionButtonbuttonpublic final static Parcelable.Creator<ShareMessengerGenericTemplateElement>CREATOR
-
Method Summary
Modifier and Type Method Description 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)-
-
Method Detail
-
getSubtitle
String getSubtitle()
Get the rendered subtitle for the shared generic template element.
-
getImageUrl
Uri getImageUrl()
Get the image url that will be downloaded and rendered at the top of the generic template.
-
getDefaultAction
ShareMessengerActionButton getDefaultAction()
Get the default action executed when this shared generic template is tapped.
-
getButton
ShareMessengerActionButton getButton()
Get the button shown on the shared generic template.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-