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

# DeviceActivityEvent

An event that represents an application, category, or website activity.

## Declaration

```swift
struct DeviceActivityEvent
```

## Overview

Overview Device activity is the amount of time an application, category, or web domain is frontmost on the screen and accumulates based on the time zone of the scheduled start date. Web domain activity includes domains visited in Safari or any third-party browser that contributes web usage via a STWebpageController.

## Topics

### Creating an Event

- [init(applications:categories:webDomains:threshold:)](deviceactivity/deviceactivityevent/init(applications:categories:webdomains:threshold:).md)
- [DeviceActivityEvent.Name](deviceactivity/deviceactivityevent/name.md)
- [includesAllActivity](deviceactivity/deviceactivityevent/includesallactivity.md)

### Including Objects in an Event

- [applications](deviceactivity/deviceactivityevent/applications.md)
- [categories](deviceactivity/deviceactivityevent/categories.md)
- [webDomains](deviceactivity/deviceactivityevent/webdomains.md)
- [threshold](deviceactivity/deviceactivityevent/threshold.md)

### Initializers

- [init(applications:categories:webDomains:threshold:includesPastActivity:)](deviceactivity/deviceactivityevent/init(applications:categories:webdomains:threshold:includespastactivity:).md)

### Instance Properties

- [includesPastActivity](deviceactivity/deviceactivityevent/includespastactivity.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)

## See Also

### Manage activities

- [DeviceActivityName](deviceactivity/deviceactivityname.md)
- [DeviceActivitySchedule](deviceactivity/deviceactivityschedule.md)
- [DeviceActivityCenter](deviceactivity/deviceactivitycenter.md)
