setLifecycleObserver

sets the LifecycleObserver for observing the the lifecycleOwner's lifecycle states.