ActionBar.IOnNavigationListener.OnNavigationItemSelected(Int32, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
This method is called whenever a navigation item in your action bar is selected.
[Android.Runtime.Register("onNavigationItemSelected", "(IJ)Z", "GetOnNavigationItemSelected_IJHandler:Android.App.ActionBar/IOnNavigationListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public bool OnNavigationItemSelected (int itemPosition, long itemId);
[<Android.Runtime.Register("onNavigationItemSelected", "(IJ)Z", "GetOnNavigationItemSelected_IJHandler:Android.App.ActionBar/IOnNavigationListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member OnNavigationItemSelected : int * int64 -> bool
Parameters
- itemPosition
- Int32
Position of the item clicked.
- itemId
- Int64
ID of the item clicked.
Returns
True if the event was handled, false otherwise.
- Attributes
Remarks
This method is called whenever a navigation item in your action bar is selected.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.