Repository

interface Repository

Provides ability to query lenses that are available to interact with by specific criteria.

Types

Link copied to clipboard

Convenience implementation of Repository which always returns empty results for any submitted query.

Link copied to clipboard
sealed class QueryCriteria

Defines all possible ways this repository can be queried for lenses.

Link copied to clipboard
sealed class Result

Defines all possible results that queries for lenses can yield.

Functions

Link copied to clipboard

Submits a query for QueryCriteria to receive the most up-to-date results into the provided onResult callback. When querying for multiple groups via QueryCriteria.Available it is not guaranteed that results will contain data for all underlying lens group sources - some maybe empty in case of network errors etc. To avoid incomplete data, prefer continuous observation of a specific QueryCriteria through observe.

Link copied to clipboard

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.

Inheritors

Link copied to clipboard