Android SDK Version
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
ShareMessengerGenericTemplateContentbuild()
Builds the object.
ShareMessengerGenericTemplateContent.BuilderreadFrom(ShareMessengerGenericTemplateContent model)
Reads the values from a ShareModel into the builder.
ShareMessengerGenericTemplateContent.BuildersetGenericTemplateElement(ShareMessengerGenericTemplateElement genericTemplateElement)
Set a generic template element with a title, optional subtitle, optional image, etc.
ShareMessengerGenericTemplateContent.BuildersetImageAspectRatio(ShareMessengerGenericTemplateContent.ImageAspectRatio imageAspectRatio)
Set the aspect ratio for when the image is rendered in the generic template bubble after being shared.
ShareMessengerGenericTemplateContent.BuildersetIsSharable(boolean isSharable)
Set whether or not this generic template message can be shared again after the initial share.
Methods inherited from class com.facebook.share.model.
setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

Builder

public Builder()
Method Detail

setIsSharable

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

setImageAspectRatio

public ShareMessengerGenericTemplateContent.Builder setImageAspectRatio(ShareMessengerGenericTemplateContent.ImageAspectRatio imageAspectRatio)
Set the aspect ratio for when the image is rendered in the generic template bubble after being shared. Defaults to horizontal.

setGenericTemplateElement

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

build

public ShareMessengerGenericTemplateContent build()
Description copied from interface: ShareBuilder
Builds the object.
Returns:
The built object.

readFrom

public ShareMessengerGenericTemplateContent.Builder readFrom(ShareMessengerGenericTemplateContent model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.