Difference between revisions of "Share.share"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.7<br/> '''<translate>Class</translate>:''' Share<br/> === <tran...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
<translate>Share a piece of data with an external app. This invokes the platform default sharing dialog, allowing to save, print, send, share, etc. <br />
 
<translate>Share a piece of data with an external app. This invokes the platform default sharing dialog, allowing to save, print, send, share, etc. <br />
 
Supported MIME types:
 
Supported MIME types:
- text/*
+
* text/*
- image/png
+
* image/png
- image/jpeg
+
* image/jpeg
  
 
</translate>
 
</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Share.share(mimeType,data)
 
  Share.share(mimeType,data)
</source>
+
</syntaxhighlight>
 +
 
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''mimeType''': (string) <translate>The MIME type of the data. </translate> <br/>
 
'''mimeType''': (string) <translate>The MIME type of the data. </translate> <br/>

Latest revision as of 14:32, 13 July 2023


Available since: Gideros 2020.7
Class: Share

Description

Share a piece of data with an external app. This invokes the platform default sharing dialog, allowing to save, print, send, share, etc.
Supported MIME types:

  • text/*
  • image/png
  • image/jpeg
 Share.share(mimeType,data)

Parameters

mimeType: (string) The MIME type of the data.
data: (string) The data itself.

Template:Share