java.lang.Object |
↳ |
com.google.android.gms.location.ActivityTransitionEvent |
Class Overview
Represents an activity transition event, for example start to walk, stop running etc.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
Public Constructors |
|
ActivityTransitionEvent(int activityType, int transitionType, long elapsedRealtimeNanos)
Creates an activity transition event.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public Constructors
public
ActivityTransitionEvent
(int activityType, int transitionType, long elapsedRealtimeNanos)
Creates an activity transition event.
Parameters |
activityType |
int : the type of the activity of this transition |
transitionType |
int : the type of transition |
elapsedRealtimeNanos |
long : the elapsed realtime when this transition happened
|
Public Methods
public
boolean
equals
(Object object)
public
int
getActivityType
()
Gets the type of the activity of this transition. It's one of activity types defined in DetectedActivity
.
public
long
getElapsedRealTimeNanos
()
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.
public
int
getTransitionType
()
Gets the type of the transition. It's one of the transition types defined in ActivityTransition
.
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel |
flags |
int |