Window.ICallback.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.
Prepare a panel to be displayed.
[Android.Runtime.Register("onPreparePanel", "(ILandroid/view/View;Landroid/view/Menu;)Z", "GetOnPreparePanel_ILandroid_view_View_Landroid_view_Menu_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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
boolean You must return true for the panel to be displayed; if you return false it will not be shown.
- Attributes
Remarks
Prepare a panel to be displayed. This is called right before the panel window is shown, every time it is shown.
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.