语言

BluetoothGattServer.RemoveService(BluetoothGattService) 方法

定义

从要提供的服务列表中删除服务。

[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)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于