bind method

LiveData<T> bind(
  1. LifeCycleObserver lifeCycleObserver
)

Implementation

LiveData<T> bind(LifeCycleObserver lifeCycleObserver) {
  if (lifeCycleObserver != null) {
    this.lifeCycleObserver = lifeCycleObserver;
    lifeCycleObserver?.observeLiveData<T>(this);
  }
  return this;
}