Read the sleep schedule using HealthKit

Using the Health app, the user can define a bedtime and a wake up time.

Can we get this data using the HealthKit framework?

I'm not interested in the actual time the user spent in bed, but in the time the user scheduled to go to bed, so different kinds of data.

Unfortunately I could not find anything in the documentation:

https://developer.apple.com/documentation/healthkit/data_types https://developer.apple.com/documentation/sirikit/infocusstatus

Read the sleep schedule using HealthKit
 
 
Q