lightbulb_outline Please take our October 2018 developer survey. Start survey

androidx.navigation.testing

Classes

TestNavigator

A simple Navigator that doesn't actually navigate anywhere, but does dispatch correctly

TestNavigatorDestinationBuilder

DSL for constructing a new TestNavigator.Destination

TestNavigatorProvider

Simple NavigatorProvider that only supports <navigation> and <test> navigation elements.

Extension functions summary

Extension properties summary

Extension functions

test

inline fun NavGraphBuilder.test(id: Int): Unit

Construct a new TestNavigator.Destination

test

inline fun NavGraphBuilder.test(id: Int, block: TestNavigatorDestinationBuilder.() -> Unit): Unit

Construct a new TestNavigator.Destination

Extension properties

backStack

val TestNavigator.backStack: List<Pair<TestNavigator.Destination, Bundle?>>

Get the TestNavigator back stack as a List of destination and argument pairs.