WeakOwner

class WeakOwner<T : Any>(val obj: <Error class: unknown class><T>) : NLifecycleOwner

Constructors

Link copied to clipboard
constructor(obj: <Error class: unknown class><T>)

Properties

Link copied to clipboard
val obj: <Error class: unknown class><T>

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.