Platforms to show: All Mac Windows Linux Cross-Platform

Back to IOBluetoothSDPDataElementMBS class.

IOBluetoothSDPDataElementMBS.Constructor(type as Integer, SizeDescriptor as Integer, Size as Integer, value as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes a new IOBluetoothSDPDataElement with the given attributes.

type: The type descriptor for the data element.
sizeDescriptor: The size descriptor for the data element (verify it matches the size parameter).
size: The size of the data element in bytes (make sure it is a valid size for the given size descriptor).
value: The raw value itself. This must be the base string, number, Array or Memoryblock objects. It may not be Dictionary. If a dictionary format is present, use other Constructor.

Warning - be careful using this method. There is next to no error checking done on the attributes. It is entirely possible to construct an invalid data element. It is recommended that other Constructor be used instead of this one.

See also:

IOBluetoothSDPDataElementMBS.Constructor(value as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes a new IOBluetoothSDPDataElement with the given value.

value: The data element value of one of the specified types.

The value must follow the format listed above and must be an instance of Memoryblock, string, number, array, dictionary, IOBluetoothSDPUUID.

See also:

IOBluetoothSDPDataElementMBS.containsDataElement(value as IOBluetoothSDPDataElementMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Checks to see if the target data element is the same as the dataElement parameter or if it contains the dataElement parameter (if its a sequence type).

dataElement: The data element to compare with (and search for).

Returns true if the target either matches the given data element or if it contains the given data element.

If the target data element is not a sequence type, this method simply compares the two data elements. If it is a sequence type, it will search through the sequence (and sub-sequences) for the dataElement parameter.

IOBluetoothSDPDataElementMBS.containsValue(value as variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Checks to see if the target data element's value is the same as the value parameter or if it contains the value parameter.

value: The value to compare with (and search for).

Returns true if the target's value either matches the given value or if it contains the given value.

This method works just like containsDataElement except that it is comparing the value objects directly.

The items on this page are in the following plugins: MBS Bluetooth Plugin.


The biggest plugin in space...