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

# SRDevice

A representation of a device that provides sample data.

```
class SRDevice
```

## Overview

This class supports iOS and watchOS devices.

## Topics

### Accessing Device Information

[`var model: String`](/documentation/SensorKit/SRDevice/model)

The user-defined name of the device.

[`var name: String`](/documentation/SensorKit/SRDevice/name)

The framework-defined name of the device.

[`var systemName: String`](/documentation/SensorKit/SRDevice/systemName)

The device’s operating system.

[`var systemVersion: String`](/documentation/SensorKit/SRDevice/systemVersion)

The device’s operating system version.

[`var productType: String`](/documentation/SensorKit/SRDevice/productType)

A string that identifies the device used to save a sample.

### Accessing the Primary Device

[`class var current: SRDevice`](/documentation/SensorKit/SRDevice/current)

The device that runs the app.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

### 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)