One Logo Pool Ball
SensorKit · IOS API REFERENCE

SRSleepSession

class · iOS 26.0+ · SDK 27.1

class SRSleepSession

Members (3)

get · iOS 26.0+

duration

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

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }
get · iOS 26.0+

startDate

TypeScript
get startDate(): globalThis.Date
Swift declaration
var startDate: Date { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SRSleepSession.init()

inherited init: clang: 'init' is unavailable

All SensorKit types →