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
android.view.Window.Callback#onPreparePanel
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
The panel that is being displayed.
- view
- View
The View that was returned by onCreatePanelView().
- menu
- IMenu
If onCreatePanelView() returned null, this is the Menu being displayed in the panel.
Returns
Implements
- Attributes
Remarks
Default implementation of android.view.Window.Callback#onPreparePanel
for activities. This calls through to the new #onPrepareOptionsMenu
method for the android.view.Window#FEATURE_OPTIONS_PANEL
panel, so that subclasses of Activity don't need to deal with feature codes.
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.