ActionBar.OnNavigationListener

Added in 1.1.0
Deprecated in 1.1.0

interface ActionBar.OnNavigationListener


Listener interface for ActionBar navigation events.

Summary

Public functions

Boolean
onNavigationItemSelected(itemPosition: Int, itemId: Long)

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

Public functions

onNavigationItemSelected

Added in 1.1.0
Deprecated in 1.1.0
fun onNavigationItemSelected(itemPosition: Int, itemId: Long): Boolean

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

Parameters
itemPosition: Int

Position of the item clicked.

itemId: Long

ID of the item clicked.

Returns
Boolean

True if the event was handled, false otherwise.