语言

BluetoothGattCallback.OnSubrateChange(BluetoothGatt, Int32, Int32) 方法

定义

指示 LE 连接的子速率参数已更改的回调。

[Android.Runtime.Register("onSubrateChange", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnSubrateChange_Landroid_bluetooth_BluetoothGatt_IIHandler", ApiSince=36)]
public virtual void OnSubrateChange(Android.Bluetooth.BluetoothGatt gatt, int subrateMode, int status);
[<Android.Runtime.Register("onSubrateChange", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnSubrateChange_Landroid_bluetooth_BluetoothGatt_IIHandler", ApiSince=36)>]
abstract member OnSubrateChange : Android.Bluetooth.BluetoothGatt * int * int -> unit
override this.OnSubrateChange : Android.Bluetooth.BluetoothGatt * int * int -> unit

参数

gatt
BluetoothGatt

涉及的远程设备

subrateMode
Int32

此 LE 连接。

status
Int32

BluetoothGatt#GATT_SUCCESS 如果已成功更新连接子级,则为

特性

注解

指示 LE 连接的子速率参数已更改的回调。

Java文档android.bluetooth.BluetoothGattCallback.onSubrateChange(android.bluetooth.BluetoothGatt, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于