<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFRunLoopObserverGetActivities(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFRunLoopObserverGetActivities"
  },
  "title" : "CFRunLoopObserverGetActivities(_:)"
}
-->

# CFRunLoopObserverGetActivities(_:)

Returns the run loop stages during which an observer runs.

```
func CFRunLoopObserverGetActivities(_ observer: CFRunLoopObserver!) -> CFOptionFlags
```

## Parameters

`observer`

The run loop observer to examine.

## Return Value

A bitwise-OR combination of all the run loop stages in which `observer` is called. See [`CFRunLoopActivity`](/documentation/CoreFoundation/CFRunLoopActivity) for the list of stages.

## Discussion

---

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)