---
title: "record(for:)"
framework: corelocation
role: symbol
role_heading: Instance Method
path: "corelocation/clmonitor-2r51v/record(for:)"
---

# record(for:)

A record that contains a condition and the most recent event your app receives.

## Declaration

```swift
func record(for identifier: String) -> CLMonitor.Record?
```

## Parameters

- `identifier`: A string that identifies the monitored condition.

## Return Value

Return Value Returns a CLMonitor.Record, or nil if the system can’t find the identifier.

## See Also

### Adding and removing conditions

- [add(_:identifier:)](corelocation/clmonitor-2r51v/add(_:identifier:).md)
- [add(_:identifier:assuming:)](corelocation/clmonitor-2r51v/add(_:identifier:assuming:).md)
- [remove(_:)](corelocation/clmonitor-2r51v/remove(_:).md)
