NavDestination.Companion

object NavDestination.Companion


Summary

Public functions

@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) Class<C?>
<C : Any?> parseClassFromNameInternal(
    context: Context,
    name: String,
    expectedClassType: Class<C?>
)

Public properties

Sequence<NavDestination>

Provides a sequence of the NavDestination's hierarchy.

Public functions

parseClassFromNameInternal

@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP])
fun <C : Any?> parseClassFromNameInternal(
    context: Context,
    name: String,
    expectedClassType: Class<C?>
): @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) Class<C?>

Public properties

hierarchy

val NavDestination.hierarchySequence<NavDestination>

Provides a sequence of the NavDestination's hierarchy. The hierarchy starts with this destination itself and is then followed by this destination's NavDestination.parent, then that graph's parent, and up the hierarchy until you've reached the root navigation graph.