BluetoothGattServer.RemoveService(BluetoothGattService) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从要提供的服务列表中删除服务。
[Android.Runtime.Register("removeService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RemoveService(Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("removeService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RemoveService : Android.Bluetooth.BluetoothGattService -> bool
参数
- service
- BluetoothGattService
要删除的服务。
返回
如果服务已删除,则为 true
- 特性
注解
从要提供的服务列表中删除服务。
Java文档android.bluetooth.BluetoothGattServer.removeService(android.bluetooth.BluetoothGattService)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。