다음을 통해 공유


BluetoothGattService.AddCharacteristic(BluetoothGattCharacteristic) Method

Definition

Add a characteristic to this 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

Parameters

characteristic
BluetoothGattCharacteristic

The characteristics to be added

Returns

true, if the characteristic was added to the service

Attributes

Remarks

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

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