Represents an activity transition event, for example start to walk, stop running etc.
| public static final Creator<ActivityTransitionEvent> | CREATOR |
|
ActivityTransitionEvent(int activityType, int transitionType, long
elapsedRealtimeNanos)
Creates an activity transition event.
|
| boolean | |
| int |
getActivityType()
Gets the type of the activity of this transition.
|
| long |
getElapsedRealTimeNanos()
Gets the elapsed realtime when this transition happened.
|
| int |
getTransitionType()
Gets the type of the transition.
|
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Creates an activity transition event.
| activityType | the type of the activity of this transition |
|---|---|
| transitionType | the type of transition |
| elapsedRealtimeNanos | the elapsed realtime when this transition happened |
Gets the type of the activity of this transition. It's one of activity types defined
in DetectedActivity.
Gets the elapsed realtime when this transition happened. Note that the event may happen in the past which means this timestamp may be much smaller than the current time.
Gets the type of the transition. It's one of the transition types defined in
ActivityTransition.