語言

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

服務將被移除。

傳回

如果服務已被移除,那是真的

屬性

備註

將一項服務從提供的服務列表中移除。

Java 文件 android.bluetooth.BluetoothGattServer.removeService(android.bluetooth.BluetoothGattService)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於