Langue

BluetoothGattService.AddService(BluetoothGattService) Méthode

Définition

Ajoutez un service inclus à ce 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

Paramètres

service
BluetoothGattService

Service à ajouter

Retours

true, si le service inclus a été ajouté au service

Attributs

Remarques

Ajoutez un service inclus à ce service.

Java documentation pour android.bluetooth.BluetoothGattService.addService(android.bluetooth.BluetoothGattService).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à