语言

BluetoothGattServerCallback.OnSubrateChange 方法

定义

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

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

参数

device
BluetoothDevice

涉及的远程设备

subrateMode
Int32

LE 连接的子速率模式,作为整数值 GattSubrateMode。

status
Int32

Success 如果已成功更新连接子级,则为

特性

注解

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

Java文档android.bluetooth.BluetoothGattServerCallback.onSubrateChange(android.bluetooth.BluetoothDevice, int, int)。

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

适用于