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...")
 
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>
Line 14: Line 14:
 
  Share.share(mimeType,data)
 
  Share.share(mimeType,data)
 
</source>
 
</source>
 +
 
=== <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/>

Revision as of 10:31, 22 July 2020


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