onNavigationItemSelected

abstract fun onNavigationItemSelected(itemPosition: Int, itemId: Long): Boolean(source)

This method is called whenever a navigation item in your action bar is selected.

Return

True if the event was handled, false otherwise.

Parameters

itemPosition

Position of the item clicked.

itemId

ID of the item clicked.