Factory

interface Factory

Creates instances of RemoteApiService scoped to a lifecycle of a single lens.

Types

Noop
Link copied to clipboard
object Noop : LensesComponent.RemoteApiService.Factory
Convenience implementation of RemoteApiService.Factory which does not support any API spec IDs and always returns RemoteApiService.Noop.

Functions

createFor
Link copied to clipboard
abstract fun createFor(lens: LensesComponent.Lens): LensesComponent.RemoteApiService
Called to create a new instance of RemoteApiService scoped to a lifecycle of the provided lens.

Properties

supportedApiSpecIds
Link copied to clipboard
abstract val supportedApiSpecIds: Set<String>
A set of API spec IDs that are supported by RemoteApiService instances created by this Factory.

Inheritors