ApplicationEvents

class ApplicationEvents

Provides events for Application lifecycle

Constructors

Link copied to clipboard
fun ApplicationEvents()

Functions

Link copied to clipboard
fun <T> raise(definition: EventDefinition<T>, value: T)

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

Link copied to clipboard
fun <T> subscribe(definition: EventDefinition<T>, handler: EventHandler<T>): DisposableHandle

Subscribe handler to an event specified by definition

Link copied to clipboard
fun <T> unsubscribe(definition: EventDefinition<T>, handler: EventHandler<T>)

Unsubscribe handler from an event specified by definition