One Logo Pool Ball
SensorKit · IOS API REFERENCE

SRDeviceUsageReport

class · iOS 14.0+ · SDK 27.1

class SRDeviceUsageReport

Members (9)

init

init

TypeScript
static init(): SRDeviceUsageReport
Swift declaration
init()
get · iOS 14.0+

applicationUsageByCategory

TypeScript
get applicationUsageByCategory(): NativeMap<SRDeviceUsageReport_CategoryKey, Array<SRDeviceUsageReport_ApplicationUsage>>
Swift declaration
var applicationUsageByCategory: [SRDeviceUsageReport.CategoryKey : [SRDeviceUsageReport.ApplicationUsage]] { get }
get · iOS 14.0+

duration

TypeScript
get duration(): number
Swift declaration
var duration: TimeInterval { get }
get · iOS 14.0+

notificationUsageByCategory

TypeScript
get notificationUsageByCategory(): NativeMap<SRDeviceUsageReport_CategoryKey, Array<SRDeviceUsageReport_NotificationUsage>>
Swift declaration
var notificationUsageByCategory: [SRDeviceUsageReport.CategoryKey : [SRDeviceUsageReport.NotificationUsage]] { get }
get · iOS 14.0+

totalScreenWakes

TypeScript
get totalScreenWakes(): number
Swift declaration
var totalScreenWakes: Int { get }
get · iOS 14.0+

totalUnlockDuration

TypeScript
get totalUnlockDuration(): number
Swift declaration
var totalUnlockDuration: TimeInterval { get }
get · iOS 14.0+

totalUnlocks

TypeScript
get totalUnlocks(): number
Swift declaration
var totalUnlocks: Int { get }
get · iOS 16.4+

version

TypeScript
get version(): string
Swift declaration
var version: String { get }
get · iOS 14.0+

webUsageByCategory

TypeScript
get webUsageByCategory(): NativeMap<SRDeviceUsageReport_CategoryKey, Array<SRDeviceUsageReport_WebUsage>>
Swift declaration
var webUsageByCategory: [SRDeviceUsageReport.CategoryKey : [SRDeviceUsageReport.WebUsage]] { get }

Skipped declarations

No declarations were skipped in this snapshot.

All SensorKit types →