ActivityTransitionRequest | Doclava
public class

ActivityTransitionRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.location.ActivityTransitionRequest

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
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.
Public Constructors
ActivityTransitionRequest(List<ActivityTransition> transitions)
Creates an ActivityTransitionRequest object by specifying a list of interested activity transitions.
Public Methods
boolean equals(Object o)
int hashCode()
void serializeToIntentExtra(Intent intent)
Serializes this request to the given intent.
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

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 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 List: 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)

Parameters
o Object
Returns
boolean

public int hashCode ()

Returns
int

public void serializeToIntentExtra (Intent intent)

Serializes this request to the given intent.

Parameters
intent Intent: the intent to serailize this object to

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int