Dev Data

class DevData<T : Any> : MutableLiveData<VmData<T>>

Inheritor of MutableLiveData embedded with VmData for ViewModel's purposes

Author

Jimly A.

Since

19-Jun-21.

Constructors

Link copied to clipboard
fun DevData()

create new instance for DevData

Functions

Link copied to clipboard
fun default()

Method to define default state

Link copied to clipboard
fun empty()

Method to define empty state

Link copied to clipboard
fun fail(e: Throwable, message: String?)

Method to define failure state

Link copied to clipboard
fun loading()

Method to define loading state

Link copied to clipboard
fun success(data: T)

Method to define success state

Sources

Link copied to clipboard