Share: Difference between revisions
From GiderosMobile
m Text replacement - "</source>" to "</syntaxhighlight>" |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<!-- GIDEROSOBJ:Share --> | <!-- GIDEROSOBJ:Share --> | ||
''' | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]]<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 | === 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;"| | ||
=== | === Methods === | ||
[[ | [[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;"| | ||
=== | === Events === | ||
=== | === Constants === | ||
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} | ||
Revision as of 16:14, 18 February 2025
Supported platforms: ![]()
![]()
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!")
MethodsShare.share share some data |
EventsConstants |