<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceActivity",
  "identifier" : "/documentation/DeviceActivity/DeviceActivityMonitor/intervalDidStart(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Device Activity"
    ],
    "preciseIdentifier" : "s:14DeviceActivity0aB7MonitorC16intervalDidStart3foryAA0aB4NameV_tF"
  },
  "title" : "intervalDidStart(for:)"
}
-->

# intervalDidStart(for:)

Indicates that the device activity interval started.

```
func intervalDidStart(for activity: DeviceActivityName)
```

## Parameters

`activity`

The name of the activity.

## Discussion

An activity starts when someone first uses the device within the activity’s scheduled time interval.
In other words,
the system only invokes this method when the device is in use.

---

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)