ActivityScopePathBuilder

A specialized AbstractPathBuilder for creating a scope resolution Path starting from an Activity scope. It adds the ability to navigate to viewModelScope or activityRetainedScope from an activity 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.

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

infix fun of(root: Root): Path
infix fun of(qualifier: Qualifier): ActivityScopePathBuilder
Link copied to clipboard
inline fun <T : Any> scope(qualifier: Qualifier): Qualifier
Link copied to clipboard
inline fun <T : Any> viewModelScope(qualifier: Qualifier = TypeQualifier(T::class)): ViewModelScopeToken

Specifies a ViewModelScope as the next step in the path.