---
title: sample
framework: sensorkit
role: symbol
role_heading: Instance Property
path: sensorkit/srfetchresult/sample
---

# sample

A recording that the sensor reader fetches.

## Declaration

```swift
@NSCopying var sample: SampleType { get }
```

## Discussion

Discussion The framework expects the app to know the result type based on the reader’s sensor. Sample types This property’s type is a superclass from which the framework derives discrete sample types. Depending on the sensor associated with your app’s sensor reader, type cast the fetch result’s sample to the sensor’s associated sample type. The following list provides the sample type per sensor:

## See Also

### Sampling Data

- [timestamp](sensorkit/srfetchresult/timestamp.md)
