Share: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 28: Line 28:
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== Methods ===
=== Methods ===
[[Share.share]] ''sharing data''<br/><!--GIDEROSMTD:Share.share(mimeType,data) sharing data-->
[[Share.new]] ''creates a new Share object''<br/><!--GIDEROSMTD:Share.new() creates a new Share object-->
[[Share.share]] ''sharing data''<br/><!--GIDEROSMTD:Share.new(mimeType,data) sharing data-->
 
[[Share:export]] ''export data''<br/><!--GIDEROSMTD:Share.export(mimeType,data) export data-->
[[Share:import]] ''import data''<br/><!--GIDEROSMTD:Share.import(mimeType,data) import data-->


| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== Events ===
=== Events ===
[[Share_Event.SHARE_EXPORT_RESULT]]<br/><!--GIDEROSEVT:Event.SHARE_EXPORT_RESULT fileshareExportResult-->
[[Share_Event.SHARE_IMPORT_RESULT]]<br/><!--GIDEROSEVT:Event.SHARE_IMPORT_RESULT fileshareImportResult-->
=== Constants ===
=== Constants ===
|}
|}


{{GIDEROS IMPORTANT LINKS}}
{{GIDEROS IMPORTANT LINKS}}

Revision as of 18:39, 20 February 2025

Supported platforms:
Available since: Gideros 2020.7

Description

Sharing a text or an image with other apps (Whatsapp, Chrome, Bluetooth, Gmail, ...) on iOS, Android and Windows Uwp.

To use the Share plugin, add it to your project and call:

Share = require "Share"
There are some more parameters for iOS, right click the plugin -> Properties

Example

Share = require "Share"

Share.share("text/plain", "Hello Gideros!")

References

Methods

Share.new creates a new Share object
Share.share sharing data

Share:export export data
Share:import import data

Events

Share_Event.SHARE_EXPORT_RESULT
Share_Event.SHARE_IMPORT_RESULT

Constants