public final class

MegacoolConfig

extends Object
java.lang.Object
   ↳ co.megacool.megacool.MegacoolConfig

Class Overview

Configure core aspects of the SDK.

Summary

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

Public Constructors

public MegacoolConfig ()

Create a new config.

Public Methods

public MegacoolConfig baseEventListener (BaseEventListener eventListener)

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.

Parameters
eventListener the listener
Returns
  • the config

public MegacoolConfig eventListener (EventListener eventListener)

Set a listener for events issued by Megacool.

Parameters
eventListener the listener
Returns
  • the config

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

Parameters
wrapper the name of the wrapper, ie "Unity".
version the wrapper's version, ie "2018.2.1" or "1.2.3-r4".
Returns
  • the config