Instance Method

initWithElementValue:

Initializes a new IOBluetoothSDPDataElement with the given value.

Declaration

- (instancetype)initWithElementValue:(NSObject *)element;

Parameters

element

The data element value of one of the specified types.

Return Value

Returns self if successful. Returns nil if there was an error parsing the element value.

Discussion

The value must follow the format listed above and must be an instance of NSData, NSString, NSNumber, NSArray, NSDictionary, IOBluetoothSDPUUID.