<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/OBEXAddObjectClassHeader(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:@F@OBEXAddObjectClassHeader"
  },
  "title" : "OBEXAddObjectClassHeader(_:_:_:)"
}
-->

# OBEXAddObjectClassHeader(_:_:_:)

Add an object class header to a dictionary of OBEXheaders.

```
func OBEXAddObjectClassHeader(_ inHeaderData: UnsafeRawPointer!, _ inHeaderDataLength: UInt32, _ dictRef: CFMutableDictionary!) -> OBEXError
```

## Parameters

`inHeaderData`

bytes you want to put in the object class header.

`inHeaderDataLength`

length of the bytes you want to put in the object class header.

`dictRef`

dictionary you have allocated to hold the headers. Make sure it’s mutable.

## Return Value

Error code, kOBEXSuccess (0) if success.

## Discussion

Object Class header - OBEX Spec, 2.2.15: Byte sequence.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)