Läs på engelska

Dela via


Fragment.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).

C#
[Android.Runtime.Register("onOptionsMenuClosed", "(Landroid/view/Menu;)V", "GetOnOptionsMenuClosed_Landroid_view_Menu_Handler")]
public virtual void OnOptionsMenuClosed(Android.Views.IMenu? menu);

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.Fragment.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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35