Share via


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_HIGH or BluetoothGatt#CONNECTION_PRIORITY_LOW_POWER.

Returns

Attributes

Exceptions

If the parameters are outside of their specified range.

Remarks

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