InputManager.IsButtonAllowedForCustomization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Remarks
Checks if a specific button is allowed for customization on the device(s). Requires Manifest.permission.MANAGE_PERIPHERAL_CUSTOMIZATION
Android reference for android.hardware.input.InputManager.isButtonAllowedForCustomization.
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.