ActivityTransition

public classActivityTransitionextendsObject
implementsParcelable

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 anActivityTransition 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 finalCreator<ActivityTransition> CREATOR

Public Method Summary

boolean
equals(Objectobject)
int
getActivityType()
Gets the type of the activity to be detected.
int
getTransitionType()
Gets the interested transition type.
int
String
void
writeToParcel(Parceldest, 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 finalCreator<ActivityTransition> CREATOR

Public Methods

public booleanequals(Objectobject)

public intgetActivityType()

Gets the type of the activity to be detected.

public intgetTransitionType()

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

public inthashCode()

publicStringtoString()

public voidwriteToParcel(Parceldest, int flags)