---
title: attributes
framework: IOBluetooth
role: symbol
role_heading: Instance Property
path: iobluetooth/iobluetoothsdpservicerecord/attributes
---

# attributes

Returns an NSDictionary containing the attributes for the service.

## Declaration

```swift
var attributes: [AnyHashable : Any]! { get }
```

## Return Value

Return Value Returns an NSDictionary containing the attributes for the target service.

## Discussion

Discussion The attribute dictionary is keyed off of the attribute id represented as an NSNumber. The values in the NSDictionary are IOBluetoothSDPDataElement objects representing the data element for the given attribute.
