InjectorRegistry

A registry to maintain Injector instances so that they can be retrieved from Activitys and Fragments. This registry is needed for dagger injection because the SDK can't access Application, and thus Activitys can't get required Component from by downcasting Activity.getApplication.

Inheritors

Functions

Link copied to clipboard
abstract fun nextKey(prefix: String): String

Returns the next key to identify an Injector.

Link copied to clipboard
abstract fun register(injector: Injector, key: String)

Registers an Injector instance with corresponding InjectorKey.

Link copied to clipboard
abstract fun retrieve(injectorKey: String): Injector?

Retrieves an Injector instance from InjectorKey.