语言

BluetoothGattCallback.OnServiceChanged(BluetoothGatt) 方法

定义

指示收到服务更改事件的回调

[Android.Runtime.Register("onServiceChanged", "(Landroid/bluetooth/BluetoothGatt;)V", "GetOnServiceChanged_Landroid_bluetooth_BluetoothGatt_Handler", ApiSince=31)]
public virtual void OnServiceChanged(Android.Bluetooth.BluetoothGatt gatt);
[<Android.Runtime.Register("onServiceChanged", "(Landroid/bluetooth/BluetoothGatt;)V", "GetOnServiceChanged_Landroid_bluetooth_BluetoothGatt_Handler", ApiSince=31)>]
abstract member OnServiceChanged : Android.Bluetooth.BluetoothGatt -> unit
override this.OnServiceChanged : Android.Bluetooth.BluetoothGatt -> unit

参数

gatt
BluetoothGatt

涉及 GATT 客户端

特性

注解

指示收到服务更改事件的回调

接收此事件意味着 GATT 数据库与远程设备不同步。 BluetoothGatt#discoverServices 应调用以重新发现服务。

Java文档android.bluetooth.BluetoothGattCallback.onServiceChanged(android.bluetooth.BluetoothGatt)。

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

适用于