語言

BluetoothGattCallback.OnServiceChanged(BluetoothGatt) 方法

定義

回撥表示服務變更事件已收到

[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

參數

gatt
BluetoothGatt

關稅總協定(GATT)客戶參與

屬性

備註

回撥表示服務變更事件已收到

收到此事件表示 GATT 資料庫與遠端裝置不同步。 BluetoothGatt#discoverServices 應該打電話重新了解服務。

Java 文件 android.bluetooth.BluetoothGattCallback.onServiceChanged(android.bluetooth.BluetoothGatt)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於