BluetoothGattCallback.OnServiceChanged(BluetoothGatt) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回撥表示服務變更事件已收到
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。