<!--
{
  "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/SRSensorReaderDelegate/sensorReader(_:fetching:didFetchResult:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SRSensorReaderDelegate(im)sensorReader:fetchingRequest:didFetchResult:"
  },
  "title" : "sensorReader(_:fetching:didFetchResult:)"
}
-->

# sensorReader(_:fetching:didFetchResult:)

Provides the delegate with a fetch result.

```
optional func sensorReader(_ reader: SRSensorReader, fetching fetchRequest: SRFetchRequest, didFetchResult result: SRFetchResult<AnyObject>) -> Bool
```

## Parameters

`reader`

The sensor reader for which the fetch provides results.

`fetchRequest`

The completed fetch request.

`result`

The fetch request’s result.

## Discussion

The framework expects the app to know the result’s type based on the reader’s sensor. To see a list of result types per sensor, see [`Sample types`](/documentation/SensorKit/SRFetchResult/sample#Sample-types).

When a fetch produces multiple results, the framework invokes this callback once for each result.

To reuse a fetch result within the scope of this function, create a copy of `fetchResult` rather than assigning a strong reference to it.

---

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)