---
title: "sensorReader(_:fetching:didFetchResult:)"
framework: sensorkit
role: symbol
role_heading: Instance Method
path: "sensorkit/srsensorreaderdelegate/sensorreader(_:fetching:didfetchresult:)"
---

# sensorReader(_:fetching:didFetchResult:)

Provides the delegate with a fetch result.

## Declaration

```swift
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

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. 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.

## See Also

### Reading Recorded Data

- [sensorReader(_:didCompleteFetch:)](sensorkit/srsensorreaderdelegate/sensorreader(_:didcompletefetch:).md)
- [sensorReader(_:fetching:failedWithError:)](sensorkit/srsensorreaderdelegate/sensorreader(_:fetching:failedwitherror:).md)
