Langue

BluetoothGattService.AddCharacteristic(BluetoothGattCharacteristic) Méthode

Définition

Ajoutez une caractéristique à ce service.

[Android.Runtime.Register("addCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "GetAddCharacteristic_Landroid_bluetooth_BluetoothGattCharacteristic_Handler")]
public virtual bool AddCharacteristic(Android.Bluetooth.BluetoothGattCharacteristic? characteristic);
[<Android.Runtime.Register("addCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "GetAddCharacteristic_Landroid_bluetooth_BluetoothGattCharacteristic_Handler")>]
abstract member AddCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic -> bool
override this.AddCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic -> bool

Paramètres

characteristic
BluetoothGattCharacteristic

Caractéristiques à ajouter

Retours

true, si la caractéristique a été ajoutée au service

Attributs

Remarques

Ajoutez une caractéristique à ce service.

Java documentation pour android.bluetooth.BluetoothGattService.addCharacteristic(android.bluetooth.BluetoothGattCharacteristic).

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 à