subscribe
abstract fun subscribe(className: String, callbackObject: EventHandler, onlyOnce: Boolean = false, identifier: String = UUID.randomUUID().toString())
Subscribes an event handler for an event class name.
Parameters
class Name
Class name of the events to listen to
callback Object
Instance which needs to be called when the event occurs
only Once
If true, the event handler will be removed after the first event
identifier
UUID of the listener
abstract fun subscribe(eventName: BlueConicEventManager.EventName, callbackObject: EventHandler, onlyOnce: Boolean = false, identifier: String = UUID.randomUUID().toString())
Subscribes an event handler for an event type.
Parameters
event Name
Class name of the events to listen to
callback Object
Instance which needs to be called when the event occurs
only Once
If true, the event handler will be removed after the first event
identifier
UUID of the listener