BluetoothGattServer.Services 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳此裝置提供的 GATT 服務清單。
public System.Collections.Generic.IList<Android.Bluetooth.BluetoothGattService>? Services { [Android.Runtime.Register("getServices", "()Ljava/util/List;", "")] get; }
[<get: Android.Runtime.Register("getServices", "()Ljava/util/List;", "")>]
member this.Services : System.Collections.Generic.IList<Android.Bluetooth.BluetoothGattService>
屬性值
服務列表。 如果還沒有新增服務,則會回傳一個空白清單。
- 屬性
備註
回傳此裝置提供的 GATT 服務清單。
應用程式必須呼叫 #addService 才能將一項服務加入該裝置所提供的服務清單。
Java 文件 android.bluetooth.BluetoothGattServer.getServices()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。