Difference between revisions of "Share"
From GiderosMobile
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
− | Share a text or an image with other apps on iOS/Android. | + | Share a text or an image with other apps on '''iOS'''/'''Android'''. |
To use the '''Share''' plugin, add it to your project and call: | To use the '''Share''' plugin, add it to your project and call: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
− | Share=require "Share" | + | Share = require "Share" |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 16: | Line 16: | ||
=== Example === | === Example === | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
− | Share=require "Share" | + | Share = require "Share" |
Share.share("text/plain", "Hello Gideros!") | Share.share("text/plain", "Hello Gideros!") | ||
Line 24: | Line 24: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
− | [[Share.share]] '' | + | [[Share.share]] ''sharing data''<br/><!--GIDEROSMTD:Share.share(mimeType,data) sharing data--> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| |
Revision as of 18:28, 18 February 2025
Supported platforms:
Available since: Gideros 2020.7
Description
Share a text or an image with other apps on iOS/Android.
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!")
MethodsShare.share sharing data |
EventsConstants |