<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRFetchResult",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRFetchResult"
  },
  "title" : "SRFetchResult"
}
-->

# SRFetchResult

Recorded data that a sensor reader fetches.

```
class SRFetchResult<SampleType> where SampleType : AnyObject
```

## Overview

A sensor reader’s [`delegate`](/documentation/SensorKit/SRSensorReader/delegate) receives instances of this class from the [`sensorReader(_:didCompleteFetch:)`](/documentation/SensorKit/SRSensorReaderDelegate/sensorReader(_:didCompleteFetch:)) when a fetch request finishes successfully.

Results are in the form of samples, which are of varying types depending on the reader’s sensor. For a list of sample types per sensor, see [`Sample types`](/documentation/SensorKit/SRFetchResult/sample#Sample-types).

## Topics

### Sampling Data

[`var sample: SampleType`](/documentation/SensorKit/SRFetchResult/sample)

A recording that the sensor reader fetches.

[`var timestamp: SRAbsoluteTime`](/documentation/SensorKit/SRFetchResult/timestamp)

The time when the framework records the sample.

### Instance Properties

[`var sourceDevice: SRSourceDevice?`](/documentation/SensorKit/SRFetchResult/sourceDevice)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)