Langue

BluetoothGattCallback.OnServicesDiscovered(BluetoothGatt, GattStatus) Méthode

Définition

Rappel appelé lorsque la liste des services distants, caractéristiques et descripteurs pour l’appareil distant a été mise à jour, c’est-à-dire que de nouveaux services ont été découverts.

[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

Paramètres

gatt
BluetoothGatt

Client GATT appelé BluetoothGatt#discoverServices

status
GattStatus

BluetoothGatt#GATT_SUCCESS si l’appareil distant a été exploré avec succès.

Attributs

Remarques

Rappel appelé lorsque la liste des services distants, caractéristiques et descripteurs pour l’appareil distant a été mise à jour, c’est-à-dire que de nouveaux services ont été découverts.

Java documentation pour android.bluetooth.BluetoothGattCallback.onServicesDiscovered(android.bluetooth.BluetoothGatt, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à