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.
Field Summary
Method Summary
Modifier and TypeMethodDescription
ShareMessengerURLActionButton.BuildersetUrl(@Nullable() Uri url) Set the URL of this action button.
ShareMessengerURLActionButton.BuildersetIsMessengerExtensionURL(boolean isMessengerExtensionURL) Set whether the url is a Messenger Extensions url.
ShareMessengerURLActionButton.BuildersetFallbackUrl(@Nullable() Uri fallbackUrl) Set the fallback URL for a Messenger Extensions enabled button.
ShareMessengerURLActionButton.BuildersetWebviewHeightRatio(ShareMessengerURLActionButton.WebviewHeightRatio webviewHeightRatio) Set the display height ratio of the webview when shown in the Messenger app.
ShareMessengerURLActionButton.BuildersetShouldHideWebviewShareButton(boolean shouldHideWebviewShareButton) Set whether we want to hide the share button in the webview or not.
ShareMessengerURLActionButton.BuilderreadFrom(ShareMessengerURLActionButton content)
ShareMessengerURLActionButtonbuild()
Methods inherited from class com.facebook.share.model.ShareMessengerActionButton.Builder
readFrom, setTitle
Methods inherited from class com.facebook.share.model.ShareModelBuilder
readFrom
Methods inherited from class com.facebook.share.ShareBuilder
build
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

setUrl

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

setIsMessengerExtensionURL

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

setFallbackUrl

ShareMessengerURLActionButton.BuildersetFallbackUrl(@Nullable() Uri fallbackUrl)
Set the fallback URL for a Messenger Extensions enabled button. This is a fallback url for aMessenger Extensions enabled button. It is used on clients that do not support MessengerExtensions. If this is not defined, the url will be used as a fallback. Optional, but ignoredunless messengerExtensions == YES.

setWebviewHeightRatio

ShareMessengerURLActionButton.BuildersetWebviewHeightRatio(ShareMessengerURLActionButton.WebviewHeightRatio webviewHeightRatio)
Set the display height ratio of the webview when shown in the Messenger app. This controlsthe display height of the webview when shown in the Messenger app. Defaults to Full

setShouldHideWebviewShareButton

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