ActionBar.IOnNavigationListener.OnNavigationItemSelected(Int32, Int64) Method

Definition

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.

Java documentation for android.app.ActionBar.OnNavigationListener.onNavigationItemSelected(int, long).

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.

Applies to