Android SDK Version
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
ShareMessengerURLActionButtonbuild()
Builds the object.
ShareMessengerURLActionButton.BuilderreadFrom(ShareMessengerURLActionButton content)
Reads the values from a ShareModel into the builder.
ShareMessengerURLActionButton.BuildersetFallbackUrl(Uri fallbackUrl)
Set the fallback URL for a Messenger Extensions enabled button.
ShareMessengerURLActionButton.BuildersetIsMessengerExtensionURL(boolean isMessengerExtensionURL)
Set whether the url is a Messenger Extensions url.
ShareMessengerURLActionButton.BuildersetShouldHideWebviewShareButton(boolean shouldHideWebviewShareButton)
Set whether we want to hide the share button in the webview or not.
ShareMessengerURLActionButton.BuildersetUrl(Uri url)
Set the URL of this action button.
ShareMessengerURLActionButton.BuildersetWebviewHeightRatio(ShareMessengerURLActionButton.WebviewHeightRatio webviewHeightRatio)
Set the display height ratio of the webview when shown in the Messenger app.
Methods inherited from class com.facebook.share.model.
setTitle
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

setUrl

public ShareMessengerURLActionButton.Builder setUrl(Uri url)
Set the URL of this action button.

setIsMessengerExtensionURL

public ShareMessengerURLActionButton.Builder setIsMessengerExtensionURL(boolean isMessengerExtensionURL)
Set whether the url is a Messenger Extensions url. This must be true if the URL is a Messenger Extensions url. Defaults to NO.

setFallbackUrl

public ShareMessengerURLActionButton.Builder setFallbackUrl(Uri fallbackUrl)
Set the fallback URL for a Messenger Extensions enabled button. This is a fallback url for a Messenger Extensions enabled button. It is used on clients that do not support Messenger Extensions. If this is not defined, the url will be used as a fallback. Optional, but ignored unless messengerExtensions == YES.

setWebviewHeightRatio

public ShareMessengerURLActionButton.Builder setWebviewHeightRatio(ShareMessengerURLActionButton.WebviewHeightRatio webviewHeightRatio)
Set the display height ratio of the webview when shown in the Messenger app. This controls the display height of the webview when shown in the Messenger app. Defaults to Full

setShouldHideWebviewShareButton

public ShareMessengerURLActionButton.Builder setShouldHideWebviewShareButton(boolean shouldHideWebviewShareButton)
Set whether we want to hide the share button in the webview or not. This controls whether we want to hide the share button in the webview or not. It is useful to hide the share button when the webview is user-specific and contains sensitive information Defaults to NO.

readFrom

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

build

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