Android.Views.ActionProvider.OnPrepareSubMenu Method
Called to prepare an associated submenu for the menu item backed by this ActionProvider.

Syntax

[Android.Runtime.Register("onPrepareSubMenu", "(Landroid/view/SubMenu;)V", "GetOnPrepareSubMenu_Landroid_view_SubMenu_Handler")]
public virtual void OnPrepareSubMenu (ISubMenu subMenu)

Parameters

subMenu
Submenu that will be displayed

Remarks

Called to prepare an associated submenu for the menu item backed by this ActionProvider.

if ActionProvider.HasSubMenu returns true, this method will be called when the menu item is selected to prepare the submenu for presentation to the user. Apps may use this to create or alter submenu content right before display.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14