Difference between revisions of "Megacool"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
 
 
<!-- GIDEROSOBJ:Megacool -->
 
<!-- GIDEROSOBJ:Megacool -->
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]]<br/>
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/>
'''<translate>Available since</translate>:''' Gideros 2018.10<br/>
+
'''Available since:''' Gideros 2018.10<br/>
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/EventDispatcher|EventDispatcher]]<br/>
+
'''Inherits from:''' [[EventDispatcher]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
 
'''The Megacool plugin is kind of 'preview' at the moment, since iOS isn't supported, more internal API could be exposed, etc'''
 
'''The Megacool plugin is kind of 'preview' at the moment, since iOS isn't supported, more internal API could be exposed, etc'''
  
 
Megacool SDK plugin is available for only Andorid and iOS as an external plugin. To use Megacool module:
 
Megacool SDK plugin is available for only Andorid and iOS as an external plugin. To use Megacool module:
  
# Add the plugin to your project.
+
# add the plugin to your project
# Go to http://megacool.co and sign up, add your game.  You will need to know your app identifier and the key for Android/iOS.
+
# go to http://megacool.co and sign up, add your game.  You will need to know your app identifier and the key for Android/iOS
# In the gideros Megcool plugin settings fill in the identifier and key strings.
+
# in the gideros Megcool plugin settings fill in the identifier and key strings
  
 +
To add Megacool SDK to your application you call:
 +
<source lang="lua">
 +
require "Megacool"
 +
</source>
  
The [[Special:MyLanguage/Megacool|Megacool]] class is defined in module &quot;Megacool&quot;. Therefore, you need to call<br />
+
  Megacool needs OpenGL ES 3 to work, you need to check for this before you require the plugin:
''require(&quot;Megacool&quot;)'' before using it. Megacool needs OpenGL ES 3 to work, you need to check for this before you require the plugin:<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
-- assume you have this line to make strings nicer to use:
 
-- assume you have this line to make strings nicer to use:
Line 26: Line 28:
 
if Megacool then print("Megacool started") else print("Megacool not started") end
 
if Megacool then print("Megacool started") else print("Megacool not started") end
 
</source>
 
</source>
 +
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
+
=== Methods ===
[[Special:MyLanguage/Megacool.startRecording|Megacool.startRecording]] <br/><!-- GIDEROSMTD:Megacool.startRecording() -->
+
[[Megacool.startRecording]] <br/><!--GIDEROSMTD:Megacool.startRecording() -->
[[Special:MyLanguage/Megacool.stopRecording|Megacool.stopRecording]] <br/><!-- GIDEROSMTD:Megacool.stopRecording() -->
+
[[Megacool.stopRecording]] <br/><!--GIDEROSMTD:Megacool.stopRecording() -->
[[Special:MyLanguage/Megacool.share|Megacool.share]] <br/><!-- GIDEROSMTD:Megacool.share() -->
+
[[Megacool.share]] <br/><!--GIDEROSMTD:Megacool.share() -->
[[Special:MyLanguage/Megacool.setSharingText|Megacool.setSharingText]] <br/><!-- GIEROSMTD:Megacool.setSharingText() -->
+
[[Megacool.setSharingText]] <br/><!--GIEROSMTD:Megacool.setSharingText() -->
 +
 
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
+
=== Events ===
[[Special:MyLanguage/Event.RECEIVED_SHARE_OPENED|Event.RECEIVED_SHARE_OPENED]]<br/><!-- GIDEROSEVT:Event.RECEIVED_SHARE_OPENED receivedShareOpened-->
+
[[Event.RECEIVED_SHARE_OPENED]]<br/><!--GIDEROSEVT:Event.RECEIVED_SHARE_OPENED receivedShareOpened-->
[[Special:MyLanguage/Event.SENT_SHARE_OPENED|Event.SENT_SHARE_OPENED]]<br/><!-- GIDEROSEVT:Event.SENT_SHARE_OPENED sentShareOpened-->
+
[[Event.SENT_SHARE_OPENED]]<br/><!--GIDEROSEVT:Event.SENT_SHARE_OPENED sentShareOpened-->
=== <translate>Constants</translate> ===
+
=== Constants ===
 
|}
 
|}
 +
 +
{{GIDEROS IMPORTANT LINKS}}

Revision as of 00:01, 2 March 2023

Supported platforms: Platform android.pngPlatform ios.png
Available since: Gideros 2018.10
Inherits from: EventDispatcher

Description

The Megacool plugin is kind of 'preview' at the moment, since iOS isn't supported, more internal API could be exposed, etc

Megacool SDK plugin is available for only Andorid and iOS as an external plugin. To use Megacool module:

  1. add the plugin to your project
  2. go to http://megacool.co and sign up, add your game. You will need to know your app identifier and the key for Android/iOS
  3. in the gideros Megcool plugin settings fill in the identifier and key strings

To add Megacool SDK to your application you call:

require "Megacool"
Megacool needs OpenGL ES 3 to work, you need to check for this before you require the plugin:
-- assume you have this line to make strings nicer to use:
local sub,lower=string.sub,string.lower

if lower(sub(Shader:getProperties().version,1,11))=="opengl es 3" then enhancedGfx=true end
if enhancedGfx then pcall(function() Megacool=require "Megacool" end) end
if Megacool then print("Megacool started") else print("Megacool not started") end

Methods

Megacool.startRecording
Megacool.stopRecording
Megacool.share
Megacool.setSharingText

Events

Event.RECEIVED_SHARE_OPENED
Event.SENT_SHARE_OPENED

Constants