---
title: "init(rawValue:)"
framework: deviceactivity
role: symbol
role_heading: Initializer
path: "deviceactivity/deviceactivityreport/context/init(rawvalue:)"
---

# init(rawValue:)

Creates a new instance with the specified raw value.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: The raw value to use for the new instance.
