<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRReader/startRecording()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "s:9SensorKit8SRReaderC14startRecordingyyYaKF"
  },
  "title" : "startRecording()"
}
-->

# startRecording()

Starts recording sensor data.

```
final func startRecording() async throws
```

## Discussion

The reader must be authorized for the sensor for this to succeed.
This starts recording on this device and any paired devices.
If other readers have already started the sensor recording this
reader’s interest in recording will be maintained. Other readers in
other apps for the same sensor will not affect the recording status
of this reader.

> Throws: An error if recording cannot be started due to permissions, hardware limitations,
> or other system restrictions

## Example

```swift
do {
    try await reader.startRecording()
} catch {
    print("Failed to start recording: \(error)")
}
```

---

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)