Injectable

Mark a class that can be injected by a Injector. This should be implemented by classes that cannot directly have their dependencies injected through constructor and need to have them injected through lateinit properties.

Parameters

Class that holds the parameters required to recreate the Dagger dependency graph during fallback.

Functions

Link copied to clipboard

Fallback initialization logic for the dependencies when Injector is not available. This could happen when the app process is killed and static Injectors are cleared up. An Injectable should check when this happens and call this function manually to recreate the Dagger dependency graph.

Link copied to clipboard

Try to use an InjectorKey to retrieve an Injector and inject, if no Injector is found, invoke Injectable.fallbackInitialize with fallbackInitializeParam.