Objective-CclassHealthKit
HKSleepDaySummary
@interface HKSleepDaySummary : NSObject <HKRedactedDescription, HKSampleAggregateCacheProviding, NSSecureCoding, NSCopying>
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- classNSObject
- protocolHKRedactedDescription
- protocolHKSampleAggregateCacheProviding
- protocolNSSecureCoding
- protocolNSCopying
Members 95
- method
+ (id)_adjustedSleepPeriods:(id)arg0 sourceTimeZone:(id)arg1 destinationTimeZone:(id)arg2; - method
+ (id)_adjustedSleepSegments:(id)arg0 sourceTimeZone:(id)arg1 destinationTimeZone:(id)arg2; - method
+ (id)_computeDurationsForPeriods:(id)arg0 sleepDayInterval:(id)arg1 strategies:(id)arg2 periodDurations:(id *)arg3; - method
+ (id)_computePeriodDurationsForPeriods:(id)arg0 sleepDayInterval:(id)arg1 strategies:(id)arg2; - method
+ (id)_computeTotalDurationsFromPeriodDurations:(id)arg0; - method
+ (id)daySummaryWithMorningIndex:(long long)arg0 dateInterval:(id)arg1 calendar:(id)arg2 periods:(id)arg3 schedules:(id)arg4 sleepDurationGoal:(id)arg5 minimumRecommendedSleepDurationGoal:(id)arg6 creationInterval:(id)arg7; - method
+ (id)emptyDaySummaryWithMorningIndex:(long long)arg0 dateInterval:(id)arg1 calendar:(id)arg2; - method
+ (BOOL)supportsSecureCoding; - property
@property(class, readonly) BOOL supportsSecureCoding; - ivar
NSDateInterval *_creationInterval;+0x40 - ivar
NSDateInterval *_dateInterval;+0x18 - ivar
NSCalendar *_gregorianCalendar;+0x48 - ivar
HKQuantity *_minimumRecommendedSleepDurationGoal;+0x38 - ivar
long long _morningIndex;+0x10 - ivar
NSArray *_periodDurations;+0x50 - ivar
NSArray *_periods;+0x20 - ivar
NSArray *_schedules;+0x28 - ivar
HKQuantity *_sleepDurationGoal;+0x30 - ivar
HKSleepDaySummaryDurationStrategySet *_strategies;+0x60 - ivar
HKSleepDaySummaryDurationCollection *_totalDurations;+0x58 - ivar
BOOL _wasShimmedFromUpdatedQuery;+0x8 - method
- (void).cxx_destruct; - method
- (id)_recomputeDurationsForStrategy:(id)arg0; - method
- (id)_updatingPeriods:(id)arg0; - method
- (double)awakeDuration; - method
- (long long)bucketIndexForIntervalComponents:(id)arg0 anchorDate:(id)arg1; - method
- (id)calendar; - method
- (BOOL)containsPeriodsWithAppleSleepTrackingData; - method
- (id)copyWithZone:(struct _NSZone *)arg0; - method
- (double)coreSleepDuration; - method
- (id)creationInterval; - method
- (id)dateInterval; - method
- (double)deepSleepDuration; - method
- (id)description; - method
- (id)durationsForStrategy:(id)arg0; - method
- (id)durationsForStrategyType:(long long)arg0; - method
- (void)encodeWithCoder:(id)arg0; - method
- (BOOL)getData:(id *)arg0 error:(id *)arg1; - method
- (BOOL)hasNonZeroSleepDurationGoal; - method
- (BOOL)hasSleepStageData; - method
- (unsigned long long)hash; - method
- (id)hk_redactedDescription; - method
- (double)inBedDuration; - method
- (id)initWithCoder:(id)arg0; - method
- (id)initWithMorningIndex:(long long)arg0 dateInterval:(id)arg1 calendar:(id)arg2 periods:(id)arg3 schedules:(id)arg4 sleepDurationGoal:(id)arg5 minimumRecommendedSleepDurationGoal:(id)arg6 creationInterval:(id)arg7; - method
- (id)initWithMorningIndex:(long long)arg0 dateInterval:(id)arg1 calendar:(id)arg2 periods:(id)arg3 schedules:(id)arg4 sleepDurationGoal:(id)arg5 minimumRecommendedSleepDurationGoal:(id)arg6 creationInterval:(id)arg7 wasShimmedFromUpdatedQuery:(BOOL)arg8; - method
- (BOOL)isEqual:(id)arg0; - method
- (BOOL)isEqualToSummary:(id)arg0 ignoreSchedules:(BOOL)arg1; - method
- (id)lastSleepPeriod; - method
- (id)minimumRecommendedSleepDurationGoal; - method
- (long long)morningIndex; - method
- (id)periods; - method
- (id)primarySchedule; - method
- (id)primarySleepPeriod; - method
- (id)primarySleepPeriodUsingSummaryDurationStrategyType:(long long)arg0; - method
- (double)remSleepDuration; - method
- (id)representativeTimeZone; - method
- (id)schedules; - method
- (double)sleepDuration; - method
- (id)sleepDurationGoal; - method
- (id)summaryFilteredToLastPeriod; - method
- (id)summaryFilteredToPrimaryPeriod; - method
- (id)summaryFilteredWithOptions:(unsigned long long)arg0; - method
- (id)summaryFilteredWithOptions:(unsigned long long)arg0 strategyType:(long long)arg1; - method
- (id)timeZoneAdjustedSummary; - method
- (id)timeZoneUnadjustedSummary; - method
- (double)unspecifiedSleepDuration; - method
- (BOOL)wasShimmedFromUpdatedQuery; - property
@property(readonly, nonatomic) double awakeDuration; - property
@property(readonly, copy, nonatomic) NSCalendar *calendar; - property
@property(readonly, nonatomic) BOOL containsPeriodsWithAppleSleepTrackingData; - property
@property(readonly, nonatomic) double coreSleepDuration; - property
@property(readonly, copy, nonatomic) NSDateInterval *creationInterval; - property
@property(readonly, copy, nonatomic) NSDateInterval *dateInterval; - property
@property(readonly, copy) NSString *debugDescription; - property
@property(readonly, nonatomic) double deepSleepDuration; - property
@property(readonly, copy) NSString *description; - property
@property(readonly, nonatomic) BOOL hasNonZeroSleepDurationGoal; - property
@property(readonly, nonatomic) BOOL hasSleepStageData; - property
@property(readonly) unsigned long long hash; - property
@property(readonly, copy) NSString *hk_redactedDescription; - property
@property(readonly, nonatomic) double inBedDuration; - property
@property(readonly, nonatomic) HKSleepPeriod *lastSleepPeriod; - property
@property(readonly, copy, nonatomic) HKQuantity *minimumRecommendedSleepDurationGoal; - property
@property(readonly, nonatomic) long long morningIndex; - property
@property(readonly, copy, nonatomic) NSArray *periods; - property
@property(readonly, copy, nonatomic) HKSleepSchedule *primarySchedule; - property
@property(readonly, nonatomic) HKSleepPeriod *primarySleepPeriod; - property
@property(readonly, nonatomic) double remSleepDuration; - property
@property(readonly, copy, nonatomic) NSArray *schedules; - property
@property(readonly, nonatomic) double sleepDuration; - property
@property(readonly, copy, nonatomic) HKQuantity *sleepDurationGoal; - property
@property(readonly) Class superclass; - property
@property(readonly, nonatomic) double unspecifiedSleepDuration; - property
@property(readonly, nonatomic) BOOL wasShimmedFromUpdatedQuery;
Header
@interface HKSleepDaySummary : NSObject <HKRedactedDescription, HKSampleAggregateCacheProviding, NSSecureCoding, NSCopying> { BOOL _wasShimmedFromUpdatedQuery; long long _morningIndex; NSDateInterval *_dateInterval; NSArray *_periods; NSArray *_schedules; HKQuantity *_sleepDurationGoal; HKQuantity *_minimumRecommendedSleepDurationGoal; NSDateInterval *_creationInterval; NSCalendar *_gregorianCalendar; NSArray *_periodDurations; HKSleepDaySummaryDurationCollection *_totalDurations; HKSleepDaySummaryDurationStrategySet *_strategies; } @property (class, readonly) BOOL supportsSecureCoding; @property (nonatomic, readonly) long long morningIndex; @property (nonatomic, copy, readonly) NSDateInterval *dateInterval; @property (nonatomic, copy, readonly) NSCalendar *calendar; @property (nonatomic, copy, readonly) NSArray *periods; @property (nonatomic, copy, readonly) NSArray *schedules; @property (nonatomic, copy, readonly) HKSleepSchedule *primarySchedule; @property (nonatomic, copy, readonly) HKQuantity *sleepDurationGoal; @property (nonatomic, readonly) BOOL hasNonZeroSleepDurationGoal; @property (nonatomic, copy, readonly) HKQuantity *minimumRecommendedSleepDurationGoal; @property (nonatomic, readonly) double inBedDuration; @property (nonatomic, readonly) double sleepDuration; @property (nonatomic, readonly) double unspecifiedSleepDuration; @property (nonatomic, readonly) double coreSleepDuration; @property (nonatomic, readonly) double deepSleepDuration; @property (nonatomic, readonly) double remSleepDuration; @property (nonatomic, readonly) double awakeDuration; @property (nonatomic, readonly) BOOL containsPeriodsWithAppleSleepTrackingData; @property (nonatomic, readonly) BOOL hasSleepStageData; @property (nonatomic, readonly) HKSleepPeriod *lastSleepPeriod; @property (nonatomic, readonly) HKSleepPeriod *primarySleepPeriod; @property (nonatomic, copy, readonly) NSDateInterval *creationInterval; @property (nonatomic, readonly) BOOL wasShimmedFromUpdatedQuery; @property (copy, readonly) NSString *hk_redactedDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (copy, readonly) NSString *description; @property (copy, readonly) NSString *debugDescription; + (BOOL)supportsSecureCoding; + (id)_adjustedSleepPeriods:(id)_adjustedSleepPeriods sourceTimeZone:(id)sourceTimeZone destinationTimeZone:(id)destinationTimeZone; + (id)_adjustedSleepSegments:(id)_adjustedSleepSegments sourceTimeZone:(id)sourceTimeZone destinationTimeZone:(id)destinationTimeZone; + (id)_computeDurationsForPeriods:(id)periods sleepDayInterval:(id)sleepDayInterval strategies:(id)strategies periodDurations:(id *)periodDurations; + (id)_computePeriodDurationsForPeriods:(id)periods sleepDayInterval:(id)sleepDayInterval strategies:(id)strategies; + (id)_computeTotalDurationsFromPeriodDurations:(id)periodDurations; + (id)daySummaryWithMorningIndex:(long long)morningIndex dateInterval:(id)dateInterval calendar:(id)calendar periods:(id)periods schedules:(id)schedules sleepDurationGoal:(id)sleepDurationGoal minimumRecommendedSleepDurationGoal:(id)minimumRecommendedSleepDurationGoal creationInterval:(id)creationInterval; + (id)emptyDaySummaryWithMorningIndex:(long long)morningIndex dateInterval:(id)dateInterval calendar:(id)calendar; - (id)description; - (id)calendar; - (id)copyWithZone:(struct _NSZone *)zone; - (id)dateInterval; - (BOOL)isEqual:(id)isEqual; - (void).cxx_destruct; - (void)encodeWithCoder:(id)coder; - (id)hk_redactedDescription; - (double)sleepDuration; - (unsigned long long)hash; - (id)initWithCoder:(id)coder; - (double)deepSleepDuration; - (id)_recomputeDurationsForStrategy:(id)strategy; - (id)periods; - (id)primarySchedule; - (id)lastSleepPeriod; - (id)_updatingPeriods:(id)_updatingPeriods; - (double)awakeDuration; - (long long)bucketIndexForIntervalComponents:(id)intervalComponents anchorDate:(id)anchorDate; - (BOOL)containsPeriodsWithAppleSleepTrackingData; - (double)coreSleepDuration; - (id)creationInterval; - (id)durationsForStrategy:(id)strategy; - (id)durationsForStrategyType:(long long)strategyType; - (BOOL)getData:(id *)data error:(id *)error; - (BOOL)hasNonZeroSleepDurationGoal; - (BOOL)hasSleepStageData; - (double)inBedDuration; - (id)initWithMorningIndex:(long long)morningIndex dateInterval:(id)dateInterval calendar:(id)calendar periods:(id)periods schedules:(id)schedules sleepDurationGoal:(id)sleepDurationGoal minimumRecommendedSleepDurationGoal:(id)minimumRecommendedSleepDurationGoal creationInterval:(id)creationInterval; - (id)initWithMorningIndex:(long long)morningIndex dateInterval:(id)dateInterval calendar:(id)calendar periods:(id)periods schedules:(id)schedules sleepDurationGoal:(id)sleepDurationGoal minimumRecommendedSleepDurationGoal:(id)minimumRecommendedSleepDurationGoal creationInterval:(id)creationInterval wasShimmedFromUpdatedQuery:(BOOL)updatedQuery; - (BOOL)isEqualToSummary:(id)summary ignoreSchedules:(BOOL)ignoreSchedules; - (id)minimumRecommendedSleepDurationGoal; - (long long)morningIndex; - (id)primarySleepPeriod; - (id)primarySleepPeriodUsingSummaryDurationStrategyType:(long long)summaryDurationStrategyType; - (double)remSleepDuration; - (id)representativeTimeZone; - (id)schedules; - (id)sleepDurationGoal; - (id)summaryFilteredToLastPeriod; - (id)summaryFilteredToPrimaryPeriod; - (id)summaryFilteredWithOptions:(unsigned long long)options; - (id)summaryFilteredWithOptions:(unsigned long long)options strategyType:(long long)strategyType; - (id)timeZoneAdjustedSummary; - (id)timeZoneUnadjustedSummary; - (double)unspecifiedSleepDuration; - (BOOL)wasShimmedFromUpdatedQuery; @end