The request object for apps to get notified when user's activity changes.
Inherited Constant Summary
Field Summary
public static finalCreator<ActivityTransitionRequest> | CREATOR | |
public static finalComparator<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 |
hashCode()
|
void | |
String |
toString()
|
void |
writeToParcel(Parceldest, int
flags)
|
Inherited Method Summary
Fields
public static finalCreator<ActivityTransitionRequest> CREATOR
public static finalComparator<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
publicActivityTransitionRequest(List<ActivityTransition> transitions)
Creates anActivityTransitionRequest
object by specifying a list of interested activity transitions.
Parameters
transitions | a list of interested activity transitions |
---|
Throws
NullPointerException | iftransitions isnull |
---|---|
IllegalArgumentException | iftransitions is an empty list or if there are duplicated
transitions in this list |
Public Methods
public booleanequals(Objecto)
public inthashCode()
public voidserializeToIntentExtra(Intent intent)
Serializes this request to the given intent.
Parameters
intent | the intent to serailize this object to |
---|