owner method

LiveData<T> owner(
  1. LifeCycleOwner lifeCycleOwner
)

Implementation

LiveData<T> owner(LifeCycleOwner lifeCycleOwner) {
  logger.i('${Logger.tag('[LIVEDATA${name == null ? '' : ': $name'}]')} '
      'subscribe on lifeCycleOwner: $lifeCycleOwner');
  _lifeCycleObserver = lifeCycleOwner;
  _lifeCycleObserver?.observeLiveData<T>(this);
  return this;
}