---
title: "init(_:filter:)"
framework: deviceactivity
role: symbol
role_heading: Initializer
path: "deviceactivity/deviceactivityreport/init(_:filter:)"
---

# init(_:filter:)

Creates a new device activity report.

## Declaration

```swift
@MainActor @preconcurrency init(_ context: DeviceActivityReport.Context, filter: DeviceActivityFilter = DeviceActivityFilter())
```

## Parameters

- `context`: The context of the report.
- `filter`: A filter for the device activity data that your app extension will use to render the report.

## Discussion

Discussion If you do not specify a filter, then the system will provide all device activity data for the current user and the current device to your device activity report app extension.
