Android Guides | Samples

Android.Views.IMenu.PerformShortcut Method

Execute the menu item action associated with the given shortcut character.

Syntax

[Android.Runtime.Register("performShortcut", "(ILandroid/view/KeyEvent;I)Z", "GetPerformShortcut_ILandroid_view_KeyEvent_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Boolean PerformShortcut ([Android.Runtime.GeneratedEnum] Keycode keyCode, KeyEvent e, [Android.Runtime.GeneratedEnum] MenuPerformFlags flags)

Parameters

keyCode
The keycode of the shortcut key.
e
Key event message.
flags
Additional option flags or 0.

Remarks

Execute the menu item action associated with the given shortcut character.

[Android Documentation]

Requirements

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