Observable

open class Observable : ObservableInterface

The `observable` interface provides basic Publish&Subscribe functionality. Classes that extend this functionality and capable of generating events, have to specify event types and corresponding data format for an event.

Functions

subscribe
Link copied to clipboard
open fun subscribe(observer: Observer, events: List<String>)
Subscribes an `observer` to a provided array of event types.
unsubscribe
Link copied to clipboard
open fun unsubscribe(observer: Observer)
Unsubscribes an `observer` from all events.
open fun unsubscribe(observer: Observer, events: List<String>)
Unsubscribes an `observer` from a provided array of event types.

Inheritors

StyleManager
Link copied to clipboard