Android.Views.IMenuItem.SetOnMenuItemClickListener Method
Set a custom listener for invocation of this menu item.

Syntax

[Android.Runtime.Register("setOnMenuItemClickListener", "(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;", "GetSetOnMenuItemClickListener_Landroid_view_MenuItem_OnMenuItemClickListener_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetOnMenuItemClickListener (IMenuItemOnMenuItemClickListener menuItemClickListener)

See Also

Android.App.Activity.OnOptionsItemSelected(IMenuItem)
Android.App.Activity.OnContextItemSelected(IMenuItem)

Parameters

menuItemClickListener
The object to receive invokations.

Returns

Documentation for this section has not yet been entered.

Remarks

Set a custom listener for invocation of this menu item. In most situations, it is more efficient and easier to use Android.App.Activity.OnOptionsItemSelected(IMenuItem) or Android.App.Activity.OnContextItemSelected(IMenuItem).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1