---
title: "init(rawValue:)"
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Initializer
path: "devicediscoveryextension/dddeviceprotocolstring/init(rawvalue:)"
---

# init(rawValue:)

Creates a string for the manner in which an app interacts with a device.

## Declaration

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

## Parameters

- `rawValue`: The device protocol’s raw value.
