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
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
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()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
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)
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
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel |
flags |
int |