NonFallbackInjectable

interface NonFallbackInjectable : Injectable<Unit>

Mark a class that can be injected by a Injector and does not support fallback. It's implemented by ViewModel Factories when the ViewModel lifecycle is shorter than the activity that contains it. In those cases, they receive the Injector directly as a constructor parameter and should not be responsible for recreating the dependency graph.

See also

Functions

Link copied to clipboard
open override fun fallbackInitialize(arg: Unit): Nothing

LinkInjectable classes don't implement fallback because they receive the injector directly as a constructor parameter.