serviceLifecycleState

val serviceLifecycleState: LiveData<Lifecycle.State>

The service lifecycle state.

The service lifecycle state depends on onCreate, onDestroy and serviceReady.

After the service is created, the state is at least Lifecycle.State.STARTED and when serviceReady is true the state set to Lifecycle.State.RESUMED.