NavigationViewActions


class NavigationViewActions


View actions for interacting with NavigationView

Summary

Public functions

java-static ViewAction!
navigateTo(menuItemId: Int)

Returns a ViewAction that navigates to a menu item in NavigationView using a menu item resource id.

Public functions

java-static fun navigateTo(menuItemId: Int): ViewAction!

Returns a ViewAction that navigates to a menu item in NavigationView using a menu item resource id.

View constraints:

  • View must be a child of a DrawerLayout
  • View must be of type NavigationView
  • View must be visible on screen
  • View must be displayed on screen
Parameters
menuItemId: Int

the resource id of the menu item

Returns
ViewAction!

a ViewAction that navigates on a menu item