InputManager.RemovePeripheralCustomization 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除對特定廠商 ID 和產品 ID 的周邊自訂功能。
[Android.Runtime.Register("removePeripheralCustomization", "(IILandroid/hardware/input/CustomizationTrigger;)V", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")]
public void RemovePeripheralCustomization(int vendorId, int productId, Android.Hardware.Input.CustomizationTrigger trigger);
[<Android.Runtime.Register("removePeripheralCustomization", "(IILandroid/hardware/input/CustomizationTrigger;)V", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_PERIPHERAL_CUSTOMIZATION")>]
member this.RemovePeripheralCustomization : int * int * Android.Hardware.Input.CustomizationTrigger -> unit
參數
- vendorId
- Int32
裝置的廠商ID
- productId
- Int32
裝置的產品識別碼
- trigger
- CustomizationTrigger
自訂的觸發條件是移除。 這個值不可能為零值。
- 屬性
備註
移除對特定廠商 ID 和產品 ID 的周邊自訂功能。
這會移除所有連接的周邊裝置上與廠商及產品 ID 相符的特定自訂設定。 若不存在指定的自訂化,此方法將無效。 需要Manifest.permission.MANAGE_PERIPHERAL_CUSTOMIZATION
Android 參考資料。android.hardware.input.InputManager.removePeripheralCustomization
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。