Repository

interface Repository

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

Types

Noop
Link copied to clipboard
object Noop : LensesComponent.Repository
Convenience implementation of Repository which always returns empty results for any submitted query.
QueryCriteria
Link copied to clipboard
sealed class QueryCriteria
Defines all possible ways this repository can be queried for lenses.
Result
Link copied to clipboard
sealed class Result
Defines all possible results that queries for lenses can yield.

Functions

get
Link copied to clipboard
abstract fun get(queryCriteria: LensesComponent.Repository.QueryCriteria, onResult: Consumer<LensesComponent.Repository.Result>)
Submits a query for QueryCriteria to receive the most up-to-date results into the provided onResult callback.
observe
Link copied to clipboard
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.

Inheritors

LensesComponent.Repository
Link copied to clipboard