InputManager.AddPeripheralCustomization 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.
Adds a new peripheral customization for a given vendor ID and product ID.
[Android.Runtime.Register("addPeripheralCustomization", "(IILandroid/hardware/input/CustomizationTrigger;Landroid/hardware/input/CustomizationAction;)V", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")]
public void AddPeripheralCustomization(int vendorId, int productId, Android.Hardware.Input.CustomizationTrigger trigger, Android.Hardware.Input.CustomizationAction action);
[<Android.Runtime.Register("addPeripheralCustomization", "(IILandroid/hardware/input/CustomizationTrigger;Landroid/hardware/input/CustomizationAction;)V", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")>]
member this.AddPeripheralCustomization : int * int * Android.Hardware.Input.CustomizationTrigger * Android.Hardware.Input.CustomizationAction -> unit
Parameters
- vendorId
- Int32
the vendor ID of the device
- productId
- Int32
the product ID of the device
- trigger
- CustomizationTrigger
the trigger for the customization. This value cannot be null.
- action
- CustomizationAction
the action to be executed by the trigger. This value cannot be null.
- Attributes
Remarks
Adds a new peripheral customization for a given vendor ID and product ID.
This will remap a key on all connected peripheral devices matching the vendor and product ID to a different action. Requires Manifest.permission.MANAGE_PERIPHERAL_CUSTOMIZATION
Android reference for android.hardware.input.InputManager.addPeripheralCustomization.
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.