Difference between revisions of "Share"

From GiderosMobile
(Created page with "__NOTOC__ <!-- GIDEROSOBJ:Share --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.png<br/> '''<translate>Available since...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
=== 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.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Share=require "Share"
 
Share=require "Share"
  
 
Share.share("text/plain","Hello World!")
 
Share.share("text/plain","Hello World!")
</source>
+
</syntaxhighlight>
  
  
Line 16: Line 16:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
[[Special:MyLanguage/Share.share]] ''<translate>share some data</translate>''<br/><!-- GIDEROSMTD:Share.share(mimeType,data) shares data -->
+
[[Special:MyLanguage/Share.share|Share.share]] ''<translate>share some data</translate>''<br/><!-- GIDEROSMTD:Share.share(mimeType,data) shares data -->
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|

Latest revision as of 15:32, 13 July 2023

Supported platforms: Platform android.pngPlatform ios.png
Available since: 2020.7

Description

Share a text or an image with other apps on iOS/Android.

Share=require "Share"

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


Methods

Share.share share some data

Events

Constants