Observable

abstract class Observable

Basic observable.

Constructors

Link copied to clipboard
fun Observable()

Empty constructor.

Functions

Link copied to clipboard
fun addListener(listener: Observer)

Adds a listener silently.

Link copied to clipboard
fun addListenerAndInvoke(listener: Observer)

Adds a listener and calls Observer.update on this new listener.

Link copied to clipboard
fun clearListeners()

Removes all listeners.

Link copied to clipboard
fun notifyChange()

Notifies all listeners by calling Observer.update.

Link copied to clipboard
fun removeListener(listener: Observer): Boolean

Removes a listener.

Inheritors

Link copied to clipboard