observe

abstract fun observe(queryCriteria: LensesComponent.Repository.QueryCriteria, onResult: Consumer<LensesComponent.Repository.Result>): Closeable

Submits a query for QueryCriteria to receive results into the provided onResult callback. The callback is invoked every time there is a change in the underlying Repository data. The returned Closeable allows to cancel the ongoing subscription by calling Closeable.close. If Closeable is ignored then subscription is cancelled once LensesComponent is closed via LensesComponent.close or its parent.