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.25ms。 有效範圍為 6(7.5ms)至 3200(4000ms)。
- latency
- Int32
連線事件數量的工人延遲。 有效範圍為0至499
- supervisionTimeout
- Int32
此連線需監督逾時,單位為10毫秒。 有效範圍為10秒(0.1秒)至3200秒(32秒)
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS 如果連線已成功更新
- 屬性