Methods
canShow
Checks if the dialog can be shown with the provided content.The content to be shared. Can be
ShareLinkContent, SharePhotoContent, or ShareVideoContent.boolean
Returns
true if the dialog can be shown, false otherwise.Example
show
Shows the share dialog with the specified content.The content to be shared. Can be
ShareLinkContent, SharePhotoContent, or ShareVideoContent.Example
setMode
Sets the mode for the share dialog.ShareDialogMode
required
The mode to use for the share dialog.iOS modes:
'automatic'- Acts with the most appropriate mode that is available'browser'- Displays the dialog in Safari'webview'- Displays the dialog in a UIWebView within the app'native'- The native dialog is used
'automatic'- The mode is determined automatically'native'- The native dialog is used'web'- The web dialog is used'feed'- The feed dialog is used
Example
setShouldFailOnDataError
Sets whether or not the native share dialog should fail when it encounters a data error.boolean
required
If
true, the dialog will fail when it encounters a data error. If false, it will continue.