SharePlugin.share()
PluginSharePluginshareLess 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/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
share | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7