Package-level declarations

Types

Link copied to clipboard
sealed interface AndroidScopes : Scope

A sealed interface representing the different types of scopes available in the Android extension module. This provides a way to distinguish between scopes with different lifecycles, such as Activity, ViewModel, and retained scopes. It uses the delegation pattern to wrap a core DefaultScope instance.

Functions

Link copied to clipboard
@JvmName(name = "injectAndroidScope")
inline fun <T> Lazy<AndroidScopes>.inject(qualifier: Qualifier = TypeQualifier(T::class), mode: LazyThreadSafetyMode = LazyThreadSafetyMode.SYNCHRONIZED): Lazy<T>

Lazily injects a dependency from an AndroidScopes instance.

@JvmName(name = "injectAndroidScope")
inline fun <T> Lazy<AndroidScopes>.inject(qualifier: Qualifier = TypeQualifier(T::class), mode: LazyThreadSafetyMode = LazyThreadSafetyMode.SYNCHRONIZED, noinline pathBuilder: ScopePathBuilder.() -> Path): Lazy<T>

Lazily injects a dependency from a sub-scope specified by a path.