Android.Views.IMenuItem.SetActionProvider Method
Sets the Android.Views.ActionProvider responsible for creating an action view if the item is placed on the action bar.

Syntax

[Android.Runtime.Register("setActionProvider", "(Landroid/view/ActionProvider;)Landroid/view/MenuItem;", "GetSetActionProvider_Landroid_view_ActionProvider_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetActionProvider (ActionProvider actionProvider)

See Also

ActionProvider

Parameters

actionProvider
The action provider.

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the Android.Views.ActionProvider responsible for creating an action view if the item is placed on the action bar. The provider also provides a default action invoked if the item is placed in the overflow menu.

Note: Setting an action provider overrides the action view set via IMenuItem.SetActionView(int) or IMenuItem.SetActionView(View).

[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