Langue

BluetoothGattCallback.OnServiceChanged(BluetoothGatt) Méthode

Définition

Rappel indiquant que l’événement modifié du service est reçu

[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

Paramètres

gatt
BluetoothGatt

Client GATT impliqué

Attributs

Remarques

Rappel indiquant que l’événement modifié du service est reçu

La réception de cet événement signifie que la base de données GATT n’est pas synchronisée avec l’appareil distant. BluetoothGatt#discoverServices doit être appelé pour redécouvrir les services.

Java documentation pour android.bluetooth.BluetoothGattCallback.onServiceChanged(android.bluetooth.BluetoothGatt).

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 à