getCurrentState

open override fun getCurrentState(): Lifecycle.State

Returns the current state of the ViewModel lifecycle. ViewModelLifecycle has only two lifecycle states; Lifecycle.Event.ON_START and Lifecycle.Event.ON_DESTROY, so make sure don't depend other lifecycle states.