java.lang.Object | |
↳ | co.megacool.megacool.MegacoolConfig |
Configure core aspects of the SDK.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MegacoolConfig()
Create a new config.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MegacoolConfig |
baseEventListener(BaseEventListener eventListener)
Set a listener for events using the base interface.
| ||||||||||
MegacoolConfig |
eventListener(EventListener eventListener)
Set a listener for events issued by Megacool.
| ||||||||||
MegacoolConfig |
wrapper(String wrapper, String version)
If wrapping Megacool from a game engine or other tool, please let us know the wrapper and
its version to assist debugging.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new config.
Set a listener for events using the base interface. We recommend using eventListener(EventListener)
wherever possible as we do not guarantee backwards compatibility with the interface, as we
might add new methods to it that you would be forced to implement when updating. If extending
the EventListener
instead you would not have this problem as you can implement only
the callbacks you need.
eventListener | the listener |
---|
Set a listener for events issued by Megacool.
eventListener | the listener |
---|
If wrapping Megacool from a game engine or other tool, please let us know the wrapper and its version to assist debugging.
wrapper | the name of the wrapper, ie "Unity" . |
---|---|
version | the wrapper's version, ie "2018.2.1" or "1.2.3-r4" . |