<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFBagCopyDescriptionCallBack",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@T@CFBagCopyDescriptionCallBack"
  },
  "title" : "CFBagCopyDescriptionCallBack"
}
-->

# CFBagCopyDescriptionCallBack

Prototype of a callback function used to get a description of a value in a bag.

```
typealias CFBagCopyDescriptionCallBack = (UnsafeRawPointer?) -> Unmanaged<CFString>?
```

## Parameters

`value`

The value to be described.

## Return Value

A textual description of `value`. Ownership follows the [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029).

## Discussion

This callback is passed to [`CFBagCreate(_:_:_:_:)`](/documentation/CoreFoundation/CFBagCreate(_:_:_:_:)) in a [`CFBagCallBacks`](/documentation/CoreFoundation/CFBagCallBacks) structure. This callback is used by the [`CFCopyDescription(_:)`](/documentation/CoreFoundation/CFCopyDescription(_:)) function.

---

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)