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


public final class ShareMessengerURLActionButton.Builder
extends ShareMessengerActionButton.Builder<ShareMessengerURLActionButton, ShareMessengerURLActionButton.Builder>
                    
Builder class for ShareMessengerURLActionButton class.
Constructor Summary
Method Summary
Modifier and TypeMethodDescription
final ShareMessengerURLActionButton.BuildersetUrl(Uri url) Set the URL of this action button.
final ShareMessengerURLActionButton.BuildersetIsMessengerExtensionURL(Boolean isMessengerExtensionURL) Set whether the url is a Messenger Extensions url.
final ShareMessengerURLActionButton.BuildersetFallbackUrl(Uri fallbackUrl) Set the fallback URL for a Messenger Extensions enabled button.
final ShareMessengerURLActionButton.BuildersetWebviewHeightRatio(ShareMessengerURLActionButton.WebviewHeightRatio webviewHeightRatio) Set the display height ratio of the webview when shown in the Messenger app.
final ShareMessengerURLActionButton.BuildersetShouldHideWebviewShareButton(Boolean shouldHideWebviewShareButton) Set whether we want to hide the share button in the webview or not.
ShareMessengerURLActionButton.BuilderreadFrom(ShareMessengerURLActionButton model) Reads the values from a ShareModel into the builder.
ShareMessengerURLActionButtonbuild() Builds the object.
Methods inherited from class com.facebook.share.model.ShareMessengerURLActionButton.Builder
setTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ShareMessengerURLActionButton.Builder

ShareMessengerURLActionButton.Builder()
Method Detail

setUrl

 final ShareMessengerURLActionButton.BuildersetUrl(Uri url)
Set the URL of this action button.

setIsMessengerExtensionURL

 final ShareMessengerURLActionButton.BuildersetIsMessengerExtensionURL(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

 final ShareMessengerURLActionButton.BuildersetFallbackUrl(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

 final ShareMessengerURLActionButton.BuildersetWebviewHeightRatio(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

 final ShareMessengerURLActionButton.BuildersetShouldHideWebviewShareButton(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

ShareMessengerURLActionButton.BuilderreadFrom(ShareMessengerURLActionButton model)
Reads the values from a ShareModel into the builder.
Parameters:
model - The source ShareModel

build

ShareMessengerURLActionButtonbuild()
Builds the object.