Megacool

From GiderosMobile
Revision as of 07:53, 4 October 2018 by Anthony (talk | contribs)


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

Description


Facebook 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.

The Megacool class is defined in module "Megacool". Therefore, you need to call
require("Megacool") before using it. 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

Events

Event.RECEIVED_SHARE_OPENED
Event.SENT_SHARE_OPENED

Constants