<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_activity_set_breadcrumb",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@macro@os_activity_set_breadcrumb"
  },
  "title" : "os_activity_set_breadcrumb"
}
-->

# os_activity_set_breadcrumb

Flags the current activity as a breadcrumb, to signify an interesting event.

```
#define os_activity_set_breadcrumb(name)
```

## Parameters

`name`

A label that describes the breadcrumb.

## Discussion

Use breadcrumbs to track interactions that span across multiple activities. Keep in mind that not all activities are interesting events.

This function can only be called once per activity;  subsequent calls are ignored.

---

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)