ActivityTransition | Doclava
public class

ActivityTransition

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.location.ActivityTransition

Class Overview

Represents an activity and the transition of it. For instance start to walk; stop running etc.

Summary

Nested Classes
class ActivityTransition.Builder The builder to help create an ActivityTransition object. 
@interface ActivityTransition.SupportedActivityTransition Activity transition constants annotation. 
Constants
int ACTIVITY_TRANSITION_ENTER User enters the given activity.
int ACTIVITY_TRANSITION_EXIT User exits the given activity.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<ActivityTransition> CREATOR
Public Methods
boolean equals(Object object)
int getActivityType()
Gets the type of the activity to be detected.
int getTransitionType()
Gets the interested transition type.
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int ACTIVITY_TRANSITION_ENTER

User enters the given activity.

Constant Value: 0 (0x00000000)

public static final int ACTIVITY_TRANSITION_EXIT

User exits the given activity.

Constant Value: 1 (0x00000001)

Fields

public static final Creator<ActivityTransition> CREATOR

Public Methods

public boolean equals (Object object)

Parameters
object Object
Returns
boolean

public int getActivityType ()

Gets the type of the activity to be detected.

Returns
int

public int getTransitionType ()

Gets the interested transition type. It's one of the ACTIVITY_TRANSITION_xxx constants.

Returns
int

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int