---
title: fetchDevices()
framework: sensorkit
role: symbol
role_heading: Instance Method
path: sensorkit/srsensorreader/fetchdevices()
---

# fetchDevices()

Acquires device information for all devices that store data for this reader’s sensor.

## Declaration

```swift
func fetchDevices()
```

## Discussion

Discussion Upon success, the framework provides an array of devices to the delegate via sensorReader(_:didFetch:). Upon failure, the framework invokes the delegate’s sensorReader(_:fetchDevicesDidFailWithError:) callback.

## See Also

### Reading recorded data

- [fetch(_:)](sensorkit/srsensorreader/fetch(_:).md)
- [SRDevice](sensorkit/srdevice.md)
