NLifecycle Owner
interface NLifecycleOwner
The NLifecycleOwner is an interface that describes a component with an lifetime that makes observations for a period of time and and is eventually terminated.
A view is an example of a component with such a lifetime whereby:
The view is created.
The view vacillates between observing and not observing.
The view is terminated.
Lifetime components adhere to the following flow:
| observing | <---> | not observing |
| |
-------------------------
|
v
--------------
| terminated |
--------------
Content copied to clipboard
Inheritors
Functions
Link copied to clipboard
Listen the changing state of the lifetime.
Link copied to clipboard
Get whether or not the observer should currently be observing.
Link copied to clipboard
Get whether or not the observer has been terminated (and will never observe again).
Link copied to clipboard
Remove the listener from the lifetime.