-
- 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
Fields Modifier and Type Field Description private Uriurlprivate booleanisMessengerExtensionURLprivate UrifallbackUrlprivate ShareMessengerURLActionButton.WebviewHeightRatiowebviewHeightRatioprivate booleanshouldHideWebviewShareButton
-
Method Summary
Modifier and Type Method Description 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)Reads the values from a ShareModel into the builder. ShareMessengerURLActionButtonbuild()Builds the object. -
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.Builder setUrl(@Nullable() Uri url)
Set the URL of this action button.
-
setIsMessengerExtensionURL
ShareMessengerURLActionButton.Builder setIsMessengerExtensionURL(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.Builder setFallbackUrl(@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.Builder setWebviewHeightRatio(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.Builder setShouldHideWebviewShareButton(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.
-
readFrom
ShareMessengerURLActionButton.Builder readFrom(ShareMessengerURLActionButton content)
Reads the values from a ShareModel into the builder.
-
build
ShareMessengerURLActionButton build()
Builds the object.
-
-
-
-