BluetoothGatt.RequestConnectionPriority(GattConnectionPriority) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請求連線參數更新。
[Android.Runtime.Register("requestConnectionPriority", "(I)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RequestConnectionPriority(Android.Bluetooth.GattConnectionPriority connectionPriority);
[<Android.Runtime.Register("requestConnectionPriority", "(I)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RequestConnectionPriority : Android.Bluetooth.GattConnectionPriority -> bool
參數
- connectionPriority
- GattConnectionPriority
請求特定的連線優先權。 必須是其中之一BluetoothGatt#CONNECTION_PRIORITY_BALANCED、或BluetoothGatt#CONNECTION_PRIORITY_LOW_POWERBluetoothGatt#CONNECTION_PRIORITY_HIGHBluetoothGatt#CONNECTION_PRIORITY_DCK。
傳回
- 屬性
例外狀況
如果參數超出其指定範圍。
備註
請求連線參數更新。
此函式會向遠端裝置發送連線參數更新請求。
Java 文件 android.bluetooth.BluetoothGatt.requestConnectionPriority(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。