Post

Replies

Boosts

Views

Activity

DeviceActivity -> Screen time API. Accessing struct information
I need to get the time of phone pickup and time of usage after the pickup and drop. DeviceActivityData.ActivitySegment -> a struct contains all these information. Where and how can i access these information?    let v = DeviceActivityData.ActivitySegment().totalActivityDuration ERROR: 'DeviceActivityData.ActivitySegment' cannot be constructed because it has no accessible initializers How do I initialise DeviceActivityData?
2
0
2.1k
Dec ’22