語言

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

裝置的產品識別碼

傳回

觸發點映射到動作,或是空白映射(若不存在則為空映射)。 這個值不可能為零值。

屬性

備註

擷取特定周邊裝置的所有輸入自訂資料。 需要Manifest.permission.MANAGE_PERIPHERAL_CUSTOMIZATION

Android 參考資料。android.hardware.input.InputManager.getAllPeripheralCustomizations

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於