语言

BluetoothGattCallback.OnServicesDiscovered(BluetoothGatt, GattStatus) 方法

定义

远程设备的列表、特征和描述符已更新时调用的回调,即已发现新服务。

[Android.Runtime.Register("onServicesDiscovered", "(Landroid/bluetooth/BluetoothGatt;I)V", "GetOnServicesDiscovered_Landroid_bluetooth_BluetoothGatt_IHandler")]
public virtual void OnServicesDiscovered(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onServicesDiscovered", "(Landroid/bluetooth/BluetoothGatt;I)V", "GetOnServicesDiscovered_Landroid_bluetooth_BluetoothGatt_IHandler")>]
abstract member OnServicesDiscovered : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.GattStatus -> unit
override this.OnServicesDiscovered : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.GattStatus -> unit

参数

gatt
BluetoothGatt

调用 GATT 客户端 BluetoothGatt#discoverServices

status
GattStatus

如果已成功探索远程设备,则为 。

特性

注解

远程设备的列表、特征和描述符已更新时调用的回调,即已发现新服务。

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

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

适用于