ActivityTransition

public class ActivityTransition extends Object
implements Parcelable

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

class ActivityTransition.Builder The builder to help create an ActivityTransition object. 
@interface ActivityTransition.SupportedActivityTransition Activity transition constants annotation. 
int ACTIVITY_TRANSITION_ENTER User enters the given activity.
int ACTIVITY_TRANSITION_EXIT User exits the given activity.
int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_WRITE_RETURN_VALUE

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

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()
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

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)