Condividi tramite


BluetoothGattServer.AddService(BluetoothGattService) Metodo

Definizione

Aggiungere un servizio all'elenco di servizi da ospitare.

[Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool AddService (Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("addService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.AddService : Android.Bluetooth.BluetoothGattService -> bool

Parametri

service
BluetoothGattService

Servizio da aggiungere all'elenco dei servizi forniti da questo dispositivo.

Restituisce

true, se la richiesta di aggiunta del servizio è stata avviata

Attributi

Commenti

Documentazione java per android.bluetooth.BluetoothGattServer.addService(android.bluetooth.BluetoothGattService).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a