Lenguaje

BluetoothGattCallback.OnServiceChanged(BluetoothGatt) Método

Definición

Devolución de llamada que indica que se recibe el evento de cambio de servicio

[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

Parámetros

gatt
BluetoothGatt

Cliente GATT implicado

Atributos

Comentarios

Devolución de llamada que indica que se recibe el evento de cambio de servicio

Recibir este evento significa que la base de datos GATT no está sincronizada con el dispositivo remoto. BluetoothGatt#discoverServices se debe llamar a para volver a detectar los servicios.

Java documentación para android.bluetooth.BluetoothGattCallback.onServiceChanged(android.bluetooth.BluetoothGatt).

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