Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

IOBluetoothSDPDataElementMBS.Constructor(type as Integer, SizeDescriptor as Integer, Size as Integer, value as Variant)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Bluetooth MBS Bluetooth Plugin 18.3 Yes No No Yes, macOS only No
Function: Initializes a new IOBluetoothSDPDataElement with the given attributes.
Notes:
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:

Feedback, Comments & Corrections

IOBluetoothSDPDataElementMBS.Constructor(value as Variant)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Bluetooth MBS Bluetooth Plugin 18.3 Yes No No Yes, macOS only No
Function: Initializes a new IOBluetoothSDPDataElement with the given value.
Notes:
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:

Feedback, Comments & Corrections

IOBluetoothSDPDataElementMBS.containsDataElement(value as IOBluetoothSDPDataElementMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Bluetooth MBS Bluetooth Plugin 18.3 Yes No No Yes, macOS only No
Function: 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).
Notes:
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.

Feedback, Comments & Corrections

IOBluetoothSDPDataElementMBS.containsValue(value as variant) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Bluetooth MBS Bluetooth Plugin 18.3 Yes No No Yes, macOS only No
Function: Checks to see if the target data element's value is the same as the value parameter or if it contains the value parameter.
Notes:
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.

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins