Język

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

Applies to