Lenguaje

BluetoothGattCallback.OnServicesDiscovered(BluetoothGatt, GattStatus) Método

Definición

Devolución de llamada invocada cuando se ha actualizado la lista de servicios remotos, características y descriptores para el dispositivo remoto, es decir, se han detectado nuevos servicios.

[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

Parámetros

gatt
BluetoothGatt

Cliente GATT invocado BluetoothGatt#discoverServices

status
GattStatus

BluetoothGatt#GATT_SUCCESS si el dispositivo remoto se ha explorado correctamente.

Atributos

Comentarios

Devolución de llamada invocada cuando se ha actualizado la lista de servicios remotos, características y descriptores para el dispositivo remoto, es decir, se han detectado nuevos servicios.

Java documentación para android.bluetooth.BluetoothGattCallback.onServicesDiscovered(android.bluetooth.BluetoothGatt, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a