addObserver

open override fun addObserver(observer: MemoryPressure.Observer)

Adds an observer to receive events.