Class

IOBluetoothSDPServiceRecord

An instance of this class represents a single SDP service record.

Declaration

@interface IOBluetoothSDPServiceRecord : NSObject

Overview

As a service record, an instance of this class has an NSDictionary of service attributes. It also has a link to the IOBluetoothDevice that the service belongs to. The service dictionary is keyed off of the attribute ID of each attribute represented as an NSNumber.

Topics

Initializers

- initWithServiceDictionary:device:

Returns an initialized IOBluetoothSDPServiceRecord * with the attributes specified in the provided service dictionary. Provide a pointer to an IOBlueotothDevice if you wish to associate the record to a specific IOBluetoothDevice.

Instance Properties

attributes

Returns an NSDictionary containing the attributes for the service.

device

Returns the IOBluetoothDevice that the target service belongs to.

sortedAttributes

Returns a sorted array of SDP attributes

Instance Methods

- getAttributeDataElement:

Returns the data element for the given attribute ID in the target service.

- getL2CAPPSM:

Allows the discovery of the L2CAP PSM assigned to the service.

- getRFCOMMChannelID:

Allows the discovery of the RFCOMM channel ID assigned to the service.

- getSDPServiceRecordRef

Returns an IOBluetoothSDPServiceRecordRef representation of the target IOBluetoothSDPServiceRecord object.

- getServiceName

Returns the name of the service.

- getServiceRecordHandle:

Allows the discovery of the service record handle assigned to the service.

- hasServiceFromArray:

Returns TRUE if any one of the UUIDs in the given array is found in the target service.

- matchesSearchArray:

Returns TRUE any of the UUID arrays in the search array match the target service.

- matchesUUID16:

Returns TRUE the UUID16 is found in the target service.

- matchesUUIDArray:

Returns TRUE if ALL of the UUIDs in the given array is found in the target service.

- removeServiceRecord

Removes the service from the local SDP server.

Type Methods

+ publishedServiceRecordWithDictionary:

Adds a service to the local SDP server.

+ withSDPServiceRecordRef:

Method call to convert an IOBluetoothSDPServiceRecordRef into an IOBluetoothSDPServiceRecord *.

+ withServiceDictionary:device:

Returns an IOBluetoothSDPServiceRecord * with the attributes specified in the provided service dictionary. Provide a pointer to an IOBlueotothDevice if you wish to associate the record to a specific IOBluetoothDevice.

Relationships

Inherits From