FOREVER

An instance of NLifecycleOwner that is always observing (and never terminates).

Instances of Observer that observe in such a fashion should be manually removed: NLiveData.removeObserver.

Functions

Link copied to clipboard
open override fun addListener(listener: NLifecycleListener)

Listen the changing state of the lifetime.

Link copied to clipboard
open override fun isObserving(): Boolean

Get whether or not the observer should currently be observing.

Link copied to clipboard
open override fun isTerminated(): Boolean

Get whether or not the observer has been terminated (and will never observe again).

Link copied to clipboard
open override fun removeListener(listener: NLifecycleListener)

Remove the listener from the lifetime.