Share: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 20: Line 20:
Share.share("text/plain", "Hello Gideros!")
Share.share("text/plain", "Hello Gideros!")
</syntaxhighlight>
</syntaxhighlight>
=== References ===
*https://developer.android.com/training/secure-file-sharing
*https://android.googlesource.com/platform/external/mime-support/+/9817b71a54a2ee8b691c1dfa937c0f9b16b3473c/mime.types


{|-
{|-

Revision as of 18:44, 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!")

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