ViewModelScopePathBuilder

A specialized AbstractPathBuilder for creating a scope resolution Path starting from a ViewModel scope. It allows navigation to an activityRetainedScope from a ViewModel scope.

Constructors

Link copied to clipboard
constructor(path: Path)

Properties

Link copied to clipboard
Link copied to clipboard
open override val path: Path

The Path object being constructed.

Functions

Link copied to clipboard
inline fun <T : Any> activityRetainedScope(qualifier: Qualifier = TypeQualifier(T::class)): ActivityRetainedScopeToken

Specifies an ActivityRetainedScope as the next step in the path.

Link copied to clipboard

Appends an ActivityRetainedScope to the path and returns a builder for that scope.

infix fun of(root: Root): Path
infix fun of(qualifier: Qualifier): ViewModelScopePathBuilder
Link copied to clipboard
inline fun <T : Any> scope(qualifier: Qualifier): Qualifier