UPSleep Class Reference
| Inherits from | UPBaseEvent : NSObject |
| Declared in | UPSleepAPI.h UPSleepAPI.m |
Tasks
Other Methods
-
+ sleepWithStartTime:endTime: -
timeCompletedproperty -
asleepTimeproperty -
awakeTimeproperty -
totalTimeAwakeproperty -
totalTimeLightproperty -
totalTimeSoundproperty -
totalTimeproperty -
qualityproperty -
awakeningsproperty -
smartAlarmFireTimeproperty -
graphImageURLproperty
Other Methods
Properties
asleepTime
The time when the user went to sleep.
@property (nonatomic, strong) NSDate *asleepTimeDiscussion
The time when the user went to sleep.
Declared In
UPSleepAPI.hawakeTime
The time when the user woke up.
@property (nonatomic, strong) NSDate *awakeTimeDiscussion
The time when the user woke up.
Declared In
UPSleepAPI.hawakenings
The number of times the user woke up during the sleep.
@property (nonatomic, strong) NSNumber *awakeningsDiscussion
The number of times the user woke up during the sleep.
Declared In
UPSleepAPI.hgraphImageURL
The URL to the graph of the sleep event.
@property (nonatomic, strong) NSString *graphImageURLDiscussion
The URL to the graph of the sleep event.
Declared In
UPSleepAPI.hquality
The quality of the sleep.
@property (nonatomic, strong) NSNumber *qualityDiscussion
The quality of the sleep.
Declared In
UPSleepAPI.hsmartAlarmFireTime
The time that the user’s smart sleep alarm fired.
@property (nonatomic, strong) NSDate *smartAlarmFireTimeDiscussion
The time that the user’s smart sleep alarm fired.
Declared In
UPSleepAPI.htimeCompleted
The time the sleep was completed.
@property (nonatomic, strong) NSDate *timeCompletedDiscussion
The time the sleep was completed.
Declared In
UPSleepAPI.htotalTime
The total time the user was asleep.
@property (nonatomic, strong) NSNumber *totalTimeDiscussion
The total time the user was asleep.
Declared In
UPSleepAPI.htotalTimeAwake
The total amount of time the user was awake during the sleep.
@property (nonatomic, strong) NSNumber *totalTimeAwakeDiscussion
The total amount of time the user was awake during the sleep.
Declared In
UPSleepAPI.hClass Methods
sleepWithStartTime:endTime:
Create a new sleep event.
+ (UPSleep *)sleepWithStartTime:(NSDate *)startTime endTime:(NSDate *)endTimeParameters
- startTime
The time the user went to sleep.
- endTime
The time the user woke up.
Return Value
Returns a new sleep event.
Discussion
Create a new sleep event.
Declared In
UPSleepAPI.h