addObserver

abstract fun addObserver(observer: WindowVisibility.Observer)

Adds an observer to receive events.