Udostępnij za pośrednictwem


Activity.OnPanelClosed(Int32, IMenu) Method

Definition

Default implementation of android.view.Window.Callback#onPanelClosed(int, Menu) for activities.

[Android.Runtime.Register("onPanelClosed", "(ILandroid/view/Menu;)V", "GetOnPanelClosed_ILandroid_view_Menu_Handler")]
public virtual void OnPanelClosed (int featureId, Android.Views.IMenu menu);
[<Android.Runtime.Register("onPanelClosed", "(ILandroid/view/Menu;)V", "GetOnPanelClosed_ILandroid_view_Menu_Handler")>]
abstract member OnPanelClosed : int * Android.Views.IMenu -> unit
override this.OnPanelClosed : int * Android.Views.IMenu -> unit

Parameters

featureId
Int32

The panel that is being displayed.

menu
IMenu

If onCreatePanelView() returned null, this is the Menu being displayed in the panel.

Implements

Attributes

Remarks

Default implementation of android.view.Window.Callback#onPanelClosed(int, Menu) for activities. This calls through to #onOptionsMenuClosed(Menu) method for the android.view.Window#FEATURE_OPTIONS_PANEL panel, so that subclasses of Activity don't need to deal with feature codes. For context menus (Window#FEATURE_CONTEXT_MENU), the #onContextMenuClosed(Menu) will be called.

Java documentation for android.app.Activity.onPanelClosed(int, 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