<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceActivity",
  "identifier" : "/documentation/DeviceActivity/DeviceActivityName",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Device Activity"
    ],
    "preciseIdentifier" : "s:14DeviceActivity0aB4NameV"
  },
  "title" : "DeviceActivityName"
}
-->

# DeviceActivityName

The unique name of an activity.

```
struct DeviceActivityName
```

## Overview

Use `DeviceActivityName` to associate an activity with some of your application’s data.
It’s not possible to have multiple activities with the same name.
Monitoring a second activity with the same name as a previous activity overwrites the schedule for the first one.

## Topics

### Creating an Instance

[`init(rawValue:)`](/documentation/DeviceActivity/DeviceActivityName/init(rawValue:))

Creates a new instance with the specified raw value.

[`init(_:)`](/documentation/DeviceActivity/DeviceActivityName/init(_:))

Creates a new instance with the specified raw value.



---

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)