getLifecycleStateAndSetListener

abstract suspend fun getLifecycleStateAndSetListener(serviceLifecycleListener: IviServiceLifecycleListenerBinderInterface): Lifecycle.State

Gets the lifecycle state and sets the serviceLifecycleListener.

A previous set serviceLifecycleListener is cleared.