Represents a sleep classification event including the classification timestamp, the sleep confidence, and the supporting data such as device motion and ambient light level. Classification events are reported at a regular intervals, such as every 10 minutes.
| public static final Creator<SleepClassifyEvent> | CREATOR |
| boolean | |
| static List<SleepClassifyEvent> | |
| int |
getConfidence()
Returns a sleep confidence value between 0 and 100.
|
| int |
getLight()
Returns the brightness of the space around the device, based on the device's
ambient light sensor readings.
|
| int |
getMotion()
Returns the amount of device motion, based on the device's accelerometer
readings.
|
| long |
getTimestampMillis()
Returns the UNIX epoch time when the event happened, expressed as the number of
milliseconds since 1/1/1970 UTC.
|
| static boolean | |
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel out, int
flags)
|
Extracts the SleepClassifyEvent from an Intent.
| intent | the Intent to extract from |
|---|
SleepClassifyEvents
if the intent has events, or an empty list if the intent doesn't contain any
events.Returns a sleep confidence value between 0 and 100. Higher values indicate that the user is more likely sleeping, while lower values indicate that the user is more likely awake.
Returns the brightness of the space around the device, based on the device's ambient light sensor readings. Value ranges from 1 to 6, inclusive. Higher values indicate brighter surroundings, while lower values indicate darker surroundings.
Returns the amount of device motion, based on the device's accelerometer readings. Value ranges from 1 to 6, inclusive. Higher values indicate more movement of the device.
Returns the UNIX epoch time when the event happened, expressed as the number of milliseconds since 1/1/1970 UTC.
Checks whether the Intent has any SleepClassifyEvent.
| intent | the Intent to extract from |
|---|