DeviceActivityCenter
A class that enables an application’s extension to start monitoring scheduled device activity.
Declaration
struct DeviceActivityCenterOverview
Activity begins when someone first uses a device within the scheduled time interval and ends when someone first uses the device outside of the interval. The system only invokes the intervalDidStart(for:) and intervalDidEnd(for:) when the device is in use. Likewise, the system invokes the eventDidReachThreshold(_:activity:) function when an event reaches its threshold.