androidx.navigation.testing
Classes
TestNavHostController |
Subclass of |
TestNavigatorState |
An implementation of |
Extension functions summary
operator <Error class: unknown class> |
SavedStateHandle constructor to create a SavedStateHandle with a serializable object. |
Extension functions
invoke
operator fun <Error class: unknown class>.invoke(
route: Any,
typeMap: Map<KType, NavType<*>> = emptyMap()
): <Error class: unknown class>
SavedStateHandle constructor to create a SavedStateHandle with a serializable object.
Returns a SavedStateHandle populated with arguments from route
.
Note: To use this api in non-instrumented tests, run with robolectric. This is because android's Bundle
is necessarily integrated into the parsing of route arguments.