androidx.navigationevent.testing
Classes
TestNavigationEventCallback |
A test implementation of |
Cmn
|
TestNavigationEventDispatcherOwner |
A test implementation of |
Cmn
|
Top-level functions summary
TestNavigationEventCallback<*> |
TestNavigationEventCallback( Creates an instance of |
Cmn
|
Top-level functions
TestNavigationEventCallback
fun TestNavigationEventCallback(
isEnabled: Boolean = true,
onEventStarted: TestNavigationEventCallback<*>.(event: NavigationEvent) -> Unit = {},
onEventProgressed: TestNavigationEventCallback<*>.(event: NavigationEvent) -> Unit = {},
onEventCancelled: TestNavigationEventCallback<*>.() -> Unit = {},
onEventCompleted: TestNavigationEventCallback<*>.() -> Unit = {}
): TestNavigationEventCallback<*>
Creates an instance of TestNavigationEventCallback
without requiring an explicit generic type.
This function is a convenience wrapper around the TestNavigationEventCallback
constructor that defaults its info type to *
. Use this in tests where the specific type of NavigationEventInfo
is not relevant.