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 some data''<br/><!--GIDEROSMTD:Share.share(mimeType,data) shares data -->
+
[[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: Platform android.pngPlatform ios.png
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!")

Methods

Share.share sharing data

Events

Constants