Android.Bluetooth.BluetoothGattServer.AddService Method
Add a service to the list of services to be hosted.

Syntax

[Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")]
public bool AddService (BluetoothGattService service)

Parameters

service
Service to be added to the list of services provided by this device.

Returns

Documentation for this section has not yet been entered.

Remarks

Add a service to the list of services to be hosted.

Once a service has been addded to the the list, the service and its included characteristics will be provided by the local device.

If the local device has already exposed services when this function is called, a service update notification will be sent to all clients.

Requires NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18