BluetoothHidDevice.RegisterApp 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
暫存器為 HID 裝置所用的應用程式。
[Android.Runtime.Register("registerApp", "(Landroid/bluetooth/BluetoothHidDeviceAppSdpSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Ljava/util/concurrent/Executor;Landroid/bluetooth/BluetoothHidDevice$Callback;)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RegisterApp(Android.Bluetooth.BluetoothHidDeviceAppSdpSettings? sdp, Android.Bluetooth.BluetoothHidDeviceAppQosSettings? inQos, Android.Bluetooth.BluetoothHidDeviceAppQosSettings? outQos, Java.Util.Concurrent.IExecutor? executor, Android.Bluetooth.BluetoothHidDevice.Callback? callback);
[<Android.Runtime.Register("registerApp", "(Landroid/bluetooth/BluetoothHidDeviceAppSdpSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Landroid/bluetooth/BluetoothHidDeviceAppQosSettings;Ljava/util/concurrent/Executor;Landroid/bluetooth/BluetoothHidDevice$Callback;)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RegisterApp : Android.Bluetooth.BluetoothHidDeviceAppSdpSettings * Android.Bluetooth.BluetoothHidDeviceAppQosSettings * Android.Bluetooth.BluetoothHidDeviceAppQosSettings * Java.Util.Concurrent.IExecutor * Android.Bluetooth.BluetoothHidDevice.Callback -> bool
參數
BluetoothHidDeviceAppSdpSettings HID 裝置 SDP 記錄的物件。 必須有 HID 裝置的 SDP 紀錄。
BluetoothHidDeviceAppQosSettings 進入 QoS 設定的物件。 輸入 QoS 設定並非必需。 預設值請使用空或預設的 BluetoothHidDeviceAppQosSettings.Builder。
BluetoothHidDeviceAppQosSettings 出站QoS設定的目標。 外部 QoS 設定並非必需。 預設值請使用空或預設的 BluetoothHidDeviceAppQosSettings.Builder。
- executor
- IExecutor
Executor 將執行回調的物件。 執行者物件是必須的。
- callback
- BluetoothHidDevice.Callback
Callback 物件將被傳送回撥訊息。 回調物件是必須的。
傳回
如果指令成功傳送,則為真;否則為假。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。