Android SDK Version
All Implemented Interfaces:
com.facebook.share.ShareBuilder , com.facebook.share.model.ShareModelBuilder


public class ShareMessengerGenericTemplateContent.Builder
extends ShareContent.Builder<ShareMessengerGenericTemplateContent, ShareMessengerGenericTemplateContent.Builder>
                    
Method Summary
Modifier and TypeMethodDescription
ShareMessengerGenericTemplateContent.BuildersetIsSharable(boolean isSharable) Set whether or not this generic template message can be shared again after the initial share.Defaults to false.
ShareMessengerGenericTemplateContent.BuildersetImageAspectRatio(ShareMessengerGenericTemplateContent.ImageAspectRatio imageAspectRatio) Set the aspect ratio for when the image is rendered in the generic template bubble afterbeing shared.
ShareMessengerGenericTemplateContent.BuildersetGenericTemplateElement(ShareMessengerGenericTemplateElement genericTemplateElement) Set a generic template element with a title, optional subtitle, optional image, etc.Required.
ShareMessengerGenericTemplateContentbuild()
ShareMessengerGenericTemplateContent.BuilderreadFrom(ShareMessengerGenericTemplateContent model)
Methods inherited from class com.facebook.share.model.ShareContent.Builder
readFrom, setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag
Methods inherited from class com.facebook.share.ShareBuilder
build
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

setIsSharable

ShareMessengerGenericTemplateContent.BuildersetIsSharable(boolean isSharable)
Set whether or not this generic template message can be shared again after the initial share.Defaults to false.

setImageAspectRatio

ShareMessengerGenericTemplateContent.BuildersetImageAspectRatio(ShareMessengerGenericTemplateContent.ImageAspectRatio imageAspectRatio)
Set the aspect ratio for when the image is rendered in the generic template bubble afterbeing shared. Defaults to horizontal.

setGenericTemplateElement

ShareMessengerGenericTemplateContent.BuildersetGenericTemplateElement(ShareMessengerGenericTemplateElement genericTemplateElement)
Set a generic template element with a title, optional subtitle, optional image, etc.Required.