Share via


CBPeripheral.WriteValue Method

Definition

Overloads

Name Description
WriteValue(NSData, CBDescriptor)

Writes data to the characteristic that is identified by the specified descriptor.

WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType)

Writes data to the specified characteristic with the specified type.

WriteValue(NSData, CBDescriptor)

Writes data to the characteristic that is identified by the specified descriptor.

[Foundation.Export("writeValue:forDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void WriteValue(Foundation.NSData data, CoreBluetooth.CBDescriptor descriptor);
[<Foundation.Export("writeValue:forDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member WriteValue : Foundation.NSData * CoreBluetooth.CBDescriptor -> unit
override this.WriteValue : Foundation.NSData * CoreBluetooth.CBDescriptor -> unit

Parameters

data
NSData

The data to write.

descriptor
CBDescriptor

The descriptor to use for the data.

Attributes

Applies to

WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType)

Writes data to the specified characteristic with the specified type.

[Foundation.Export("writeValue:forCharacteristic:type:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void WriteValue(Foundation.NSData data, CoreBluetooth.CBCharacteristic characteristic, CoreBluetooth.CBCharacteristicWriteType type);
[<Foundation.Export("writeValue:forCharacteristic:type:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member WriteValue : Foundation.NSData * CoreBluetooth.CBCharacteristic * CoreBluetooth.CBCharacteristicWriteType -> unit
override this.WriteValue : Foundation.NSData * CoreBluetooth.CBCharacteristic * CoreBluetooth.CBCharacteristicWriteType -> unit

Parameters

data
NSData
characteristic
CBCharacteristic
Attributes

Applies to