共用方式為


Activity.OnOptionsMenuClosed(IMenu) Method

Definition

This hook is called whenever the options menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).

[Android.Runtime.Register("onOptionsMenuClosed", "(Landroid/view/Menu;)V", "GetOnOptionsMenuClosed_Landroid_view_Menu_Handler")]
public virtual void OnOptionsMenuClosed (Android.Views.IMenu? menu);
[<Android.Runtime.Register("onOptionsMenuClosed", "(Landroid/view/Menu;)V", "GetOnOptionsMenuClosed_Landroid_view_Menu_Handler")>]
abstract member OnOptionsMenuClosed : Android.Views.IMenu -> unit
override this.OnOptionsMenuClosed : Android.Views.IMenu -> unit

Parameters

menu
IMenu

The options menu as last shown or first initialized by onCreateOptionsMenu().

Attributes

Remarks

This hook is called whenever the options menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).

Java documentation for android.app.Activity.onOptionsMenuClosed(android.view.Menu).

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