Megosztás a következőn keresztül:


Window.ICallback.OnProvideKeyboardShortcuts Method

Definition

Called when Keyboard Shortcuts are requested for the current window.

[Android.Runtime.Register("onProvideKeyboardShortcuts", "(Ljava/util/List;Landroid/view/Menu;I)V", "GetOnProvideKeyboardShortcuts_Ljava_util_List_Landroid_view_Menu_IHandler:Android.Views.Window/ICallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual void OnProvideKeyboardShortcuts (System.Collections.Generic.IList<Android.Views.KeyboardShortcutGroup>? data, Android.Views.IMenu menu, int deviceId);
[<Android.Runtime.Register("onProvideKeyboardShortcuts", "(Ljava/util/List;Landroid/view/Menu;I)V", "GetOnProvideKeyboardShortcuts_Ljava_util_List_Landroid_view_Menu_IHandler:Android.Views.Window/ICallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member OnProvideKeyboardShortcuts : System.Collections.Generic.IList<Android.Views.KeyboardShortcutGroup> * Android.Views.IMenu * int -> unit
override this.OnProvideKeyboardShortcuts : System.Collections.Generic.IList<Android.Views.KeyboardShortcutGroup> * Android.Views.IMenu * int -> unit

Parameters

data
IList<KeyboardShortcutGroup>

The data list to populate with shortcuts.

menu
IMenu

The current menu, which may be null.

deviceId
Int32

The id for the connected device the shortcuts should be provided for.

Attributes

Remarks

Called when Keyboard Shortcuts are requested for the current window.

Java documentation for android.view.Window.Callback.onProvideKeyboardShortcuts(java.util.List<android.view.KeyboardShortcutGroup>, android.view.Menu, int).

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