IMenu.AddIntentOptions(Int32, Int32, Int32, ComponentName, Intent[], Intent, MenuAppendFlags, IMenuItem[]) IMenu.AddIntentOptions(Int32, Int32, Int32, ComponentName, Intent[], Intent, MenuAppendFlags, IMenuItem[]) Method

Definition

Add a group of menu items corresponding to actions that can be performed for a particular Intent.

[Android.Runtime.Register("addIntentOptions", "(IIILandroid/content/ComponentName;[Landroid/content/Intent;Landroid/content/Intent;I[Landroid/view/MenuItem;)I", "GetAddIntentOptions_IIILandroid_content_ComponentName_arrayLandroid_content_Intent_Landroid_content_Intent_IarrayLandroid_view_MenuItem_Handler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int AddIntentOptions (int groupId, int itemId, int order, Android.Content.ComponentName caller, Android.Content.Intent[] specifics, Android.Content.Intent intent, Android.Views.MenuAppendFlags flags, Android.Views.IMenuItem[] outSpecificItems);
abstract member AddIntentOptions : int * int * int * Android.Content.ComponentName * Android.Content.Intent[] * Android.Content.Intent * Android.Views.MenuAppendFlags * Android.Views.IMenuItem[] -> int

Parameters

groupId
Int32 Int32

The group identifier that the items should be part of. This can also be used to define groups of items for batch state changes. Normally use None if the items should not be in a group.

itemId
Int32 Int32

Unique item ID. Use None if you do not need a unique ID.

order
Int32 Int32

The order for the items. Use None if you do not care about the order. See Order.

caller
ComponentName ComponentName

The current activity component name as defined by queryIntentActivityOptions().

specifics
Intent[]

Specific items to place first as defined by queryIntentActivityOptions().

intent
Intent Intent

Intent describing the kinds of items to populate in the list as defined by queryIntentActivityOptions().

flags
MenuAppendFlags MenuAppendFlags

Additional options controlling how the items are added.

outSpecificItems
IMenuItem[]

specifics

Returns

Remarks

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.

Applies to

See also