Android SDK Version
  • java.lang.Object
    • com.facebook.share.model.ShareMessengerGenericTemplateElement.Builder
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
ShareMessengerGenericTemplateElementbuild()
Builds the object.
ShareMessengerGenericTemplateElement.BuilderreadFrom(ShareMessengerGenericTemplateElement model)
Reads the values from a ShareModel into the builder.
ShareMessengerGenericTemplateElement.BuildersetButton(ShareMessengerActionButton button)
Set the button to append to the bottom of the generic template.
ShareMessengerGenericTemplateElement.BuildersetDefaultAction(ShareMessengerActionButton defaultAction)
Set the default action executed when this shared generic template is tapped.
ShareMessengerGenericTemplateElement.BuildersetImageUrl(Uri imageUrl)
Set the image url that will be downloaded and rendered at the top of the generic template.
ShareMessengerGenericTemplateElement.BuildersetSubtitle(java.lang.String subtitle)
Set the rendered subtitle for the shared generic template element.
ShareMessengerGenericTemplateElement.BuildersetTitle(java.lang.String title)
Set the rendered title for the shared generic template element.
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

setTitle

public ShareMessengerGenericTemplateElement.Builder setTitle(java.lang.String title)
Set the rendered title for the shared generic template element. Required.

setSubtitle

public ShareMessengerGenericTemplateElement.Builder setSubtitle(java.lang.String subtitle)
Set the rendered subtitle for the shared generic template element. Optional.

setImageUrl

public ShareMessengerGenericTemplateElement.Builder setImageUrl(Uri imageUrl)
Set the image url that will be downloaded and rendered at the top of the generic template. Optional.

setDefaultAction

public ShareMessengerGenericTemplateElement.Builder setDefaultAction(ShareMessengerActionButton defaultAction)
Set the default action executed when this shared generic template is tapped. Optional.

setButton

public ShareMessengerGenericTemplateElement.Builder setButton(ShareMessengerActionButton button)
Set the button to append to the bottom of the generic template.

build

public ShareMessengerGenericTemplateElement build()
Description copied from interface: ShareBuilder
Builds the object.

readFrom

public ShareMessengerGenericTemplateElement.Builder readFrom(ShareMessengerGenericTemplateElement model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Parameters:
model - The source ShareModel
Returns:
The builder.