public final class ShareMessengerGenericTemplateContent extends ShareContent<ShareMessengerGenericTemplateContent,ShareMessengerGenericTemplateContent.Builder>
| Modifier and Type | Class and Description |
|---|---|
static class |
ShareMessengerGenericTemplateContent.Builder
Builder for the
ShareMessengerGenericTemplateContent class. |
static class |
ShareMessengerGenericTemplateContent.ImageAspectRatio
The aspect ratio for when the image is rendered in the generic template bubble after
being shared
|
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ShareMessengerGenericTemplateContent> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
ShareMessengerGenericTemplateContent(ShareMessengerGenericTemplateContent.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
ShareMessengerGenericTemplateElement |
getGenericTemplateElement()
Get a generic template element with a title, optional subtitle, optional image, etc.
|
ShareMessengerGenericTemplateContent.ImageAspectRatio |
getImageAspectRatio()
Get the aspect ratio for when the image is rendered in the generic template bubble after
being shared.
|
boolean |
getIsSharable()
Get whether or not this generic template message can be shared again after the
initial share.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
getContentUrl, getPageId, getPeopleIds, getPlaceId, getRef, getShareHashtagpublic static final android.os.Parcelable.Creator<ShareMessengerGenericTemplateContent> CREATOR
protected ShareMessengerGenericTemplateContent(ShareMessengerGenericTemplateContent.Builder builder)
public boolean getIsSharable()
public ShareMessengerGenericTemplateContent.ImageAspectRatio getImageAspectRatio()
public ShareMessengerGenericTemplateElement getGenericTemplateElement()
public int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class ShareContent<ShareMessengerGenericTemplateContent,ShareMessengerGenericTemplateContent.Builder>public void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class ShareContent<ShareMessengerGenericTemplateContent,ShareMessengerGenericTemplateContent.Builder>