Language

InputManager.IsButtonAllowedForCustomization Method

Definition

Checks if a specific button is allowed for customization on the device(s).

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

Parameters

vendorId
Int32

the vendor ID of the device.

productId
Int32

the product ID of the device.

buttonCode
CustomizableButton

the button code to check.

Returns

true if the button can be customized on the matching devices, False otherwise.

Attributes

Applies to