-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public class ShareMessengerGenericTemplateElement.Builder implements ShareModelBuilder<ShareMessengerGenericTemplateElement, ShareMessengerGenericTemplateElement.Builder>
Builder for the ShareMessengerGenericTemplateElement class.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringtitleprivate Stringsubtitleprivate UriimageUrlprivate ShareMessengerActionButtondefaultActionprivate ShareMessengerActionButtonbutton
-
Method Summary
Modifier and Type Method Description ShareMessengerGenericTemplateElement.BuildersetTitle(String title)Set the rendered title for the shared generic template element. ShareMessengerGenericTemplateElement.BuildersetSubtitle(String subtitle)Set the rendered subtitle for the shared generic template element. ShareMessengerGenericTemplateElement.BuildersetImageUrl(Uri imageUrl)Set the image url that will be downloaded and rendered at the top of the generic template.Optional. ShareMessengerGenericTemplateElement.BuildersetDefaultAction(ShareMessengerActionButton defaultAction)Set the default action executed when this shared generic template is tapped. ShareMessengerGenericTemplateElement.BuildersetButton(ShareMessengerActionButton button)Set the button to append to the bottom of the generic template. ShareMessengerGenericTemplateElementbuild()Builds the object. ShareMessengerGenericTemplateElement.BuilderreadFrom(ShareMessengerGenericTemplateElement model)Reads the values from a ShareModel into the builder. -
-
Method Detail
-
setTitle
ShareMessengerGenericTemplateElement.Builder setTitle(String title)
Set the rendered title for the shared generic template element. Required.
-
setSubtitle
ShareMessengerGenericTemplateElement.Builder setSubtitle(String subtitle)
Set the rendered subtitle for the shared generic template element. Optional.
-
setImageUrl
ShareMessengerGenericTemplateElement.Builder setImageUrl(Uri imageUrl)
Set the image url that will be downloaded and rendered at the top of the generic template.Optional.
-
setDefaultAction
ShareMessengerGenericTemplateElement.Builder setDefaultAction(ShareMessengerActionButton defaultAction)
Set the default action executed when this shared generic template is tapped. Optional.
-
setButton
ShareMessengerGenericTemplateElement.Builder setButton(ShareMessengerActionButton button)
Set the button to append to the bottom of the generic template.
-
build
ShareMessengerGenericTemplateElement build()
Builds the object.
-
readFrom
ShareMessengerGenericTemplateElement.Builder readFrom(ShareMessengerGenericTemplateElement model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-