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()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。