EventDispatcher

open class EventDispatcher

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class EventsMap : Map<String, Any>
Link copied to clipboard
Link copied to clipboard
data class MyRecord(val key1: String, val key2: Int)

Properties

Link copied to clipboard
val eventFlow: MutableSharedFlow<Event>

Functions

Link copied to clipboard
fun <EventType : Any> off(eventType: EventType, callback: Listener<EventType>? = null): EventDispatcher

Remove the event handler(s) for one or more events.

Link copied to clipboard
fun <EventType : Enum<EventType>> on(type: EventType, callback: EventDispatcher.MyEventListener<Any>, options: Options? = null, context: Any? = null): EventDispatcher
Link copied to clipboard
fun <EventType : Enum<EventType>> on2(type: EventType, callback: EventSource, options: Options?, context: Any?): EventDispatcher

Register an event handler function for one or more events.

Link copied to clipboard
inline fun <EventType : Event> publisher(eventType: Class<EventType>): Flow<EventType>
Link copied to clipboard
Link copied to clipboard
fun trigger(event: Event)
fun trigger(event: Event, datesArray: Array<Date>)
fun trigger(event: Event, datesList: List<Date>)
fun trigger(event: Event, valueMap: Map<String, Tile<TileData>>)
fun trigger(event: Event, intervalArray: MutableList<TimeInterval>, placeHolder: Int)
Link copied to clipboard
fun triggerAny(event: Event, data: Any)