scope

inline fun <T : Any> scope(qualifier: Qualifier = TypeQualifier(T::class)): Qualifier

Creates a TypeQualifier for the given type T, to be used within the path.

Return

A Qualifier for the specified type.

Parameters

T

The class type to create a qualifier for.

qualifier

An optional, explicit Qualifier to use instead of creating one from the type.