Språk

InputManager.IsKeyAllowedForCustomization Method

Definition

Gets whether a keycode can be customized on a device.

[Android.Runtime.Register("isKeyAllowedForCustomization", "(III)Z", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")]
public bool IsKeyAllowedForCustomization(int vendorId, int productId, Android.Hardware.Input.CustomizableKeyCode keyCode);
[<Android.Runtime.Register("isKeyAllowedForCustomization", "(III)Z", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")>]
member this.IsKeyAllowedForCustomization : int * int * Android.Hardware.Input.CustomizableKeyCode -> bool

Parameters

vendorId
Int32

the vendor ID for the device.

productId
Int32

the product ID for the device.

keyCode
CustomizableKeyCode

the android keycode to check.

Returns

true if the keycode can be customized on the device. False otherwise.

Attributes

Remarks

Gets whether a keycode can be customized on a device. Requires Manifest.permission.MANAGE_PERIPHERAL_CUSTOMIZATION

Android reference for android.hardware.input.InputManager.isKeyAllowedForCustomization.

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