共用方式為


BluetoothGattServer.RemoveService(BluetoothGattService) Method

Definition

Removes a service from the list of services to be provided.

[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

Parameters

service
BluetoothGattService

Service to be removed.

Returns

true, if the service has been removed

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattServer.removeService(android.bluetooth.BluetoothGattService).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to