A request object that specifies what data to receive from the Sleep API. Defaults to
SEGMENT_AND_CLASSIFY_EVENTS.
| int | CLASSIFY_EVENTS_ONLY | Requests SleepClassifyEvent
only. |
| int | SEGMENT_AND_CLASSIFY_EVENTS | Requests both the SleepSegmentEvent
and the SleepClassifyEvent. |
| int | SEGMENT_EVENTS_ONLY | Requests SleepSegmentEvent
only. |
| public static final Creator<SleepSegmentRequest> | CREATOR |
|
SleepSegmentRequest(int requestedDataType)
Constructs a
SleepSegmentRequest
indicating what type of data is being requested.
|
| boolean | |
| static SleepSegmentRequest |
getDefaultSleepSegmentRequest()
Creates a default request that registers for both
SleepSegmentEvent and SleepClassifyEvent data.
|
| int |
getRequestedDataType()
Returns the requested data type, which is one of
SEGMENT_AND_CLASSIFY_EVENTS,
SEGMENT_EVENTS_ONLY, or
CLASSIFY_EVENTS_ONLY.
|
| int |
hashCode()
|
| void |
writeToParcel(Parcel parcel, int
flags)
|
Requests SleepClassifyEvent only.
Requests both the SleepSegmentEvent and the
SleepClassifyEvent.
Requests SleepSegmentEvent only.
Constructs a SleepSegmentRequest
indicating what type of data is being requested.
| requestedDataType | The type of data to receive pending intents for; valid values are
SEGMENT_AND_CLASSIFY_EVENTS,
SEGMENT_EVENTS_ONLY, and
CLASSIFY_EVENTS_ONLY. |
|---|
Creates a default request that registers for both SleepSegmentEvent and
SleepClassifyEvent data.
Returns the requested data type, which is one of
SEGMENT_AND_CLASSIFY_EVENTS,
SEGMENT_EVENTS_ONLY, or
CLASSIFY_EVENTS_ONLY.