Activity.OnPreparePanel(Int32, View, IMenu) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Default implementation of Window.Callback.onPreparePanel(int, View, Menu) for activities.
[Android.Runtime.Register("onPreparePanel", "(ILandroid/view/View;Landroid/view/Menu;)Z", "GetOnPreparePanel_ILandroid_view_View_Landroid_view_Menu_Handler")]
public virtual bool OnPreparePanel(int featureId, Android.Views.View? view, Android.Views.IMenu menu);
[<Android.Runtime.Register("onPreparePanel", "(ILandroid/view/View;Landroid/view/Menu;)Z", "GetOnPreparePanel_ILandroid_view_View_Landroid_view_Menu_Handler")>]
abstract member OnPreparePanel : int * Android.Views.View * Android.Views.IMenu -> bool
override this.OnPreparePanel : int * Android.Views.View * Android.Views.IMenu -> bool
Parameters
- featureId
- Int32
int: The panel that is being displayed.
- view
- View
View: This value may be null.
- menu
- IMenu
Menu: This value cannot be null.
Returns
boolean You must return true for the panel to be displayed; if you return false it will not be shown.
Implements
- Attributes
Remarks
Default implementation of Window.Callback.onPreparePanel(int, View, Menu) for activities. This calls through to the new onPrepareOptionsMenu(Menu) method for the Window.FEATURE_OPTIONS_PANEL panel, so that subclasses of Activity don't need to deal with feature codes.
Android reference for android.app.Activity.onPreparePanel.
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.