---
title: "CFRunLoopCopyAllModes(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfrunloopcopyallmodes(_:)"
---

# CFRunLoopCopyAllModes(_:)

Returns an array that contains all the defined modes for a CFRunLoop object.

## Declaration

```swift
func CFRunLoopCopyAllModes(_ rl: CFRunLoop!) -> CFArray!
```

## Parameters

- `rl`: The run loop to examine.

## Return Value

Return Value An array that contains all the run loop modes defined for rl. Ownership follows the The Create Rule.

## See Also

### Managing Run Loop Modes

- [CFRunLoopAddCommonMode(_:_:)](corefoundation/cfrunloopaddcommonmode(_:_:).md)
- [CFRunLoopCopyCurrentMode(_:)](corefoundation/cfrunloopcopycurrentmode(_:).md)
