BLOOD_OXYGEN

The blood oxygen level measured during sleep.

Getting associated BloodOxygenType data for a specific SleepType data's uid. A sample code to retrieve this data is:

 suspend fun readAssociatedBloodOxygen(sleepDataPoint: HealthDataPoint) {
     val store = HealthDataService.getStore(context)
     val sleepSessionUid = sleepDataPoint.uid
     val readAssociateRequest = DataTypes.SLEEP.associatedReadRequestBuilder
         .setIdFilter(IdFilter.fromDataUid(sleepSessionUid))
         .addAssociatedDataType(DataType.SleepType.Associates.BLOOD_OXYGEN)
         // set additional filters or conditions
         .build()

     val associatedBloodOxygen = store.readAssociatedData(readAssociateRequest)
     // Process data
}

Since

1.0.0

Preferences Submitted

You have successfully updated your cookie preferences.