addListenerAndInvoke

fun addListenerAndInvoke(listener: Observer)

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

Parameters

listener

Listener to add and notify.