Skip to main content

SharePlugin.share()

BFChainPluginSharePluginshareLess than 1 minute

Method for sharing

SharePlugin.share(options)

Parameters

  • options

    Share options object;
    The value is a ShareOptions object

Return Value

Returns a Promise that resolves to a ShareResult object

Example

import { sharePlugin } from "@plaoc/plugins";

(async() => {
  const b = await sharePlugin.canShare()
  if(!b) return;
  
  const res = await sharePlugin.share({
    title: "Title",
    text: "Text content" 
  })
})();

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
shareX

SharePlugin

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7