set On Navigation Item Selected Listener
open fun setOnNavigationItemSelectedListener(@Nullable listener: BottomNavigationView.OnNavigationItemSelectedListener)
Deprecated
Use setOnItemSelectedListener instead.
Set a listener that will be notified when a bottom navigation item is selected. This listener will also be notified when the currently selected item is reselected, unless an has also been set.
Parameters
listener
The listener to notify