Difference between revisions of "Share"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<!-- GIDEROSOBJ:Share -->
 
<!-- GIDEROSOBJ:Share -->
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/>
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/>
'''<translate>Available since</translate>:''' 2020.7<br/>
+
'''Available since:''' Gideros 2020.7<br/>
  
 
=== 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:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
Share=require "Share"
 
Share=require "Share"
 +
</syntaxhighlight>
 +
 +
'''There are some more parameters for iOS, right click the plugin -> Properties'''
  
Share.share("text/plain","Hello World!")
+
=== Example ===
 +
<syntaxhighlight lang="lua">
 +
Share=require "Share"
 +
 
 +
Share.share("text/plain", "Hello Gideros!")
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
+
=== Methods ===
[[Special:MyLanguage/Share.share|Share.share]] ''<translate>share some data</translate>''<br/><!-- GIDEROSMTD:Share.share(mimeType,data) shares data -->
+
[[Share.share]] ''share some data''<br/><!--GIDEROSMTD:Share.share(mimeType,data) shares data -->
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
+
=== Events ===
=== <translate>Constants</translate> ===
+
=== Constants ===
 
|}
 
|}
  
 
{{GIDEROS IMPORTANT LINKS}}
 
{{GIDEROS IMPORTANT LINKS}}

Revision as of 18:14, 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 share some data

Events

Constants