-
- 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
Nested Classes Modifier and Type Class Description public enumShareMessengerGenericTemplateContent.ImageAspectRatioThe aspect ratio for when the image is rendered in the generic template bubble after beingshared
public classShareMessengerGenericTemplateContent.BuilderBuilder for the ShareMessengerGenericTemplateContent class.
-
Field Summary
Fields Modifier and Type Field Description private final booleanisSharableprivate final ShareMessengerGenericTemplateContent.ImageAspectRatioimageAspectRatioprivate final ShareMessengerGenericTemplateElementgenericTemplateElementpublic final static Parcelable.Creator<ShareMessengerGenericTemplateContent>CREATOR
-
Method Summary
Modifier and Type Method Description 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
getContentUrl, getPageId, getPeopleIds, getPlaceId, getRef, getShareHashtag -
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
-
getIsSharable
boolean getIsSharable()
Get whether or not this generic template message can be shared again after the initial share.
-
getImageAspectRatio
ShareMessengerGenericTemplateContent.ImageAspectRatio getImageAspectRatio()
Get the aspect ratio for when the image is rendered in the generic template bubble after beingshared.
-
getGenericTemplateElement
ShareMessengerGenericTemplateElement getGenericTemplateElement()
Get a generic template element with a title, optional subtitle, optional image, etc.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel out, int flags)
-
-
-
-