The request object for apps to get notified when user's activity changes.
| 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. |
|
ActivityTransitionRequest(List<ActivityTransition>
transitions)
Creates an
ActivityTransitionRequest object by specifying a list of interested
activity transitions.
|
| boolean | |
| int |
hashCode()
|
| void | |
| String |
toString()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
The comparator used to determine if two transitions are the same. It's different
from
equals(Object) because in the future we may add latency to activity
transition and the latency value should not be compared against.
Creates an ActivityTransitionRequest
object by specifying a list of interested activity transitions.
| transitions | a list of interested activity transitions |
|---|
| NullPointerException | if transitions is null |
|---|---|
| IllegalArgumentException | if transitions is an empty list or if there are duplicated
transitions in this list |
Serializes this request to the given intent.
| intent | the intent to serailize this object to |
|---|