class Lazybones<out T> : Serializable
Lazybones is a wrapper class having Lazy property for lifecycle aware.
Lazybones(lifecycleOwner: LifecycleOwner, lazy: Lazy<T>)
Lazybones is a wrapper class having Lazy property for lifecycle aware. |
fun lazy(): Lazy<T>
gets a lazy class. |
|
fun onAny(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.ANY lifecycle state. |
|
fun onCreate(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.CREATE lifecycle state. |
|
fun onDestroy(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.DESTROY lifecycle state. |
|
fun onPause(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.PAUSE lifecycle state. |
|
fun onResume(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.RESUME lifecycle state. |
|
fun onStart(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.START lifecycle state. |
|
fun onStop(receiver: (T) -> Unit): Lazybones<T>
returns a Lazybones and the receiver will be aware of On.STOP lifecycle state. |
|
fun toString(): String |
|
fun value(): T
gets a value from the lazy class. |