ApplicationEvents

class ApplicationEvents

Provides events for Application lifecycle

Constructors

<init>

ApplicationEvents()

Provides events for Application lifecycle

Functions

raise

fun <T> raise(definition: EventDefinition<T>, value: T): Unit

Rise an event specified by definition with the specified value and call all handlers

subscribe

fun <T> subscribe(
    definition: EventDefinition<T>,
    handler: EventHandler<T>
): DisposableHandle

Subscribe handler to an event specified by definition

unsubscribe

fun <T> unsubscribe(
    definition: EventDefinition<T>,
    handler: EventHandler<T>
): Unit

Unsubscribe handler from an event specified by definition