语言

InputManager.GetAllPeripheralCustomizations(Int32, Int32) 方法

定义

检索特定外围设备的所有输入自定义。

[Android.Runtime.Register("getAllPeripheralCustomizations", "(II)Ljava/util/Map;", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")]
public System.Collections.Generic.IDictionary<Android.Hardware.Input.CustomizationTrigger,Android.Hardware.Input.CustomizationAction> GetAllPeripheralCustomizations(int vendorId, int productId);
[<Android.Runtime.Register("getAllPeripheralCustomizations", "(II)Ljava/util/Map;", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")>]
member this.GetAllPeripheralCustomizations : int * int -> System.Collections.Generic.IDictionary<Android.Hardware.Input.CustomizationTrigger, Android.Hardware.Input.CustomizationAction>

参数

vendorId
Int32

设备的供应商 ID

productId
Int32

设备的产品 ID

返回

触发器到操作的映射,如果没有,则为空映射。 此值不能为 null。

属性

注解

检索特定外围设备的所有输入自定义。 需要Manifest.permission.MANAGE_PERIPHERAL_CUSTOMIZATION

Android 参考。android.hardware.input.InputManager.getAllPeripheralCustomizations

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于