---
title: DeviceActivityName
framework: Device Activity
role: symbol
role_heading: Structure
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+]
path: deviceactivity/deviceactivityname
---

# DeviceActivityName

The unique name of an activity.

## Declaration

```swift
struct DeviceActivityName
```

## Overview

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:)](deviceactivity/deviceactivityname/init(rawvalue:).md)
- [init(_:)](deviceactivity/deviceactivityname/init(_:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)

## See Also

### Manage activities

- [DeviceActivityEvent](deviceactivity/deviceactivityevent.md)
- [DeviceActivitySchedule](deviceactivity/deviceactivityschedule.md)
- [DeviceActivityCenter](deviceactivity/deviceactivitycenter.md)
