BluetoothGattServerCallback.OnConnectionUpdated 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示连接参数已更新的回调。
[Android.Runtime.Register("onConnectionUpdated", "(Landroid/bluetooth/BluetoothDevice;IIII)V", "GetOnConnectionUpdated_Landroid_bluetooth_BluetoothDevice_IIIIHandler", ApiSince=37)]
public virtual void OnConnectionUpdated(Android.Bluetooth.BluetoothDevice device, int interval, int latency, int supervisionTimeout, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onConnectionUpdated", "(Landroid/bluetooth/BluetoothDevice;IIII)V", "GetOnConnectionUpdated_Landroid_bluetooth_BluetoothDevice_IIIIHandler", ApiSince=37)>]
abstract member OnConnectionUpdated : Android.Bluetooth.BluetoothDevice * int * int * int * Android.Bluetooth.GattStatus -> unit
override this.OnConnectionUpdated : Android.Bluetooth.BluetoothDevice * int * int * int * Android.Bluetooth.GattStatus -> unit
参数
- device
- BluetoothDevice
涉及的远程设备
- interval
- Int32
在此连接上使用的连接间隔,1.25 毫秒单位。 有效范围为 6 (7.5 毫秒) 到 3200 (4000 毫秒)。
- latency
- Int32
连接的工作器延迟(以连接事件数为单位)。 有效范围为 0 到 499
- supervisionTimeout
- Int32
此连接的监督超时,以 10 毫秒为单位。 有效范围为 10 (0.1s) 到 3200 (32s)
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS 如果连接已成功更新,则为
- 属性