ActivityTransition

public class ActivityTransition extends Object
implements Parcelable

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

Nested Class Summary

class ActivityTransition.Builder The builder to help create an ActivityTransition object. 
@interface ActivityTransition.SupportedActivityTransition Activity transition constants annotation. 

Constant Summary

int ACTIVITY_TRANSITION_ENTER User enters the given activity.
int ACTIVITY_TRANSITION_EXIT User exits the given activity.

Inherited Constant Summary

Field Summary

public static final Creator<ActivityTransition> CREATOR

Public Method Summary

boolean
equals(Object object)
int
getActivityType()
Gets the type of the activity to be detected.
int
getTransitionType()
Gets the interested transition type.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Constants

public static final int ACTIVITY_TRANSITION_ENTER

User enters the given activity.

Constant Value: 0

public static final int ACTIVITY_TRANSITION_EXIT

User exits the given activity.

Constant Value: 1

Fields

public static final Creator<ActivityTransition> CREATOR

Public Methods

public boolean equals (Object object)

public int getActivityType ()

Gets the type of the activity to be detected.

public int getTransitionType ()

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

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)