Language

BluetoothGatt.RequestConnectionPriority(GattConnectionPriority) Method

Definition

Request a connection parameter update.

[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

Parameters

connectionPriority
GattConnectionPriority

Request a specific connection priority. Must be one of BluetoothGatt#CONNECTION_PRIORITY_BALANCED, BluetoothGatt#CONNECTION_PRIORITY_HIGHBluetoothGatt#CONNECTION_PRIORITY_LOW_POWER, or BluetoothGatt#CONNECTION_PRIORITY_DCK.

Returns

true if the request was submitted to the Bluetooth service; otherwise, false. This does not confirm that the connection parameters changed.

Attributes

Exceptions

If the parameters are outside of their specified range.

Remarks

Request a connection parameter update.

This function will send a connection parameter update request to the remote device.

Java documentation for android.bluetooth.BluetoothGatt.requestConnectionPriority(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to