BluetoothGattService.AddCharacteristic(BluetoothGattCharacteristic) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.