<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSensorReader/stopRecording()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRSensorReader(im)stopRecording"
  },
  "title" : "stopRecording()"
}
-->

# stopRecording()

Stops recording sensor data.

```
func stopRecording()
```

## Discussion

This function requests that the framework stop recording for this reader’s sensor. The framework records on this device and any paired devices. Call [`fetchDevices()`](/documentation/SensorKit/SRSensorReader/fetchDevices()) to get acquire the full list of devices on which the framework records.

The framework allows a sensor to be recorded simultaneously by multiple readers, either in the same app, or across different apps on the same system. As a result, this function signifies that the caller relinquishes interest in recording the reader’s sensor.

Upon success, the framework calls the delegate’s [`sensorReaderDidStopRecording(_:)`](/documentation/SensorKit/SRSensorReaderDelegate/sensorReaderDidStopRecording(_:)) callback. Upon failure, the framework calls the delegate’s [`sensorReader(_:stopRecordingFailedWithError:)`](/documentation/SensorKit/SRSensorReaderDelegate/sensorReader(_:stopRecordingFailedWithError:)).

The reader must be authorized (see [`authorizationStatus`](/documentation/SensorKit/SRSensorReader/authorizationStatus)) for this function to succeed.

---

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)