ActivityTransitionRequest

public class ActivityTransitionRequest extends Object
implements Parcelable

The request object for apps to get notified when user's activity changes.

Inherited Constant Summary

Field Summary

public static final Creator<ActivityTransitionRequest> CREATOR
public static final Comparator<ActivityTransition> IS_SAME_TRANSITION The comparator used to determine if two transitions are the same.

Public Constructor Summary

ActivityTransitionRequest(List<ActivityTransition> transitions)
Creates an ActivityTransitionRequest object by specifying a list of interested activity transitions.

Public Method Summary

boolean
int
void
serializeToIntentExtra(Intent intent)
Serializes this request to the given intent.
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<ActivityTransitionRequest> CREATOR

public static final Comparator<ActivityTransition> IS_SAME_TRANSITION

The comparator used to determine if two transitions are the same. It's different from ActivityTransition.equals(Object) because in the future we may add latency to activity transition and the latency value should not be compared against.

Public Constructors

public ActivityTransitionRequest (List<ActivityTransition> transitions)

Creates an ActivityTransitionRequest object by specifying a list of interested activity transitions.

Parameters
transitions a list of interested activity transitions
Throws
NullPointerException if transitions is null
IllegalArgumentException if transitions is an empty list or if there are duplicated transitions in this list

Public Methods

public boolean equals (Object o)

public int hashCode ()

public void serializeToIntentExtra (Intent intent)

Serializes this request to the given intent.

Parameters
intent the intent to serailize this object to

public String toString ()

public void writeToParcel (Parcel dest, int flags)