Difference between revisions of "Share.share"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 11: Line 11:
  
 
</translate>
 
</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Share.share(mimeType,data)
 
  Share.share(mimeType,data)
 
</source>
 
</source>

Revision as of 14:30, 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

<syntaxhighlight lang="lua">

Share.share(mimeType,data)

</source>

Parameters

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

Template:Share