onOptionsItemSelected

open override fun onOptionsItemSelected(item: MenuItem): Boolean

This hook is called whenever an item in your options menu is selected.

Return

Return false to allow normal menu processing to proceed, true to consume it here.

Parameters

item

The menu item that was selected. This value cannot be null.