次の方法で共有


IMenuItem.SetOnMenuItemClickListener(IMenuItemOnMenuItemClickListener) Method

Definition

Set a custom listener for invocation of this menu item.

[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 Android.Views.IMenuItem SetOnMenuItemClickListener (Android.Views.IMenuItemOnMenuItemClickListener? menuItemClickListener);
[<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")>]
abstract member SetOnMenuItemClickListener : Android.Views.IMenuItemOnMenuItemClickListener -> Android.Views.IMenuItem

Parameters

menuItemClickListener
IMenuItemOnMenuItemClickListener

The object to receive invokations.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Java documentation for android.view.MenuItem.setOnMenuItemClickListener(android.view.OnMenuItemClickListener).

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

See also