Condividi tramite


BluetoothGattService.AddService(BluetoothGattService) Method

Definition

Add an included service to this service.

[Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "GetAddService_Landroid_bluetooth_BluetoothGattService_Handler")]
public virtual bool AddService (Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "GetAddService_Landroid_bluetooth_BluetoothGattService_Handler")>]
abstract member AddService : Android.Bluetooth.BluetoothGattService -> bool
override this.AddService : Android.Bluetooth.BluetoothGattService -> bool

Parameters

service
BluetoothGattService

The service to be added

Returns

true, if the included service was added to the service

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattService.addService(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