java.lang.Object |
↳ |
com.google.android.gms.fitness.result.SessionReadResult |
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)
|
|
From interface
com.google.android.gms.common.api.Result
|
Fields
Public Methods
public
boolean
equals
(Object that)
public
List<DataSet>
getDataSet
(Session session, DataType dataType)
Returns the data sets for a given session
and dataType
. If a specific data
source was requested for this data type in the read request, the returned data set is from
that source. Else, the default data source for this data type is used. Returns empty if no
data for the requested data type is found.
Parameters |
session |
Session
|
dataType |
DataType
|
Returns |
List<DataSet> |
data sets for the given session and data type, empty if no data was found. Multiple
data sets may be returned for a given type, based on the read request |
Throws |
IllegalArgumentException |
if the given session was not part of
getSessions() output.
|
public
List<DataSet>
getDataSet
(Session session)
Returns the data sets for all data sources for a given session
. If a specific data
source was requested for a data type in the read request, the returned data set is from
that source. Else, the default data source for the requested data type is used.
Parameters |
session |
Session
|
Returns |
List<DataSet> |
data sets for the given session for all data sources, empty if no data was found.
Multiple data sets may be returned for a given type, based on the read request |
Throws |
IllegalArgumentException |
if the given session was not part of
getSessions() output
|
public
List<Session>
getSessions
()
Returns all sessions that matched the requested filters.
public
Status
getStatus
()
Returns the status of this result. Use isSuccess()
to determine whether the
call was successful, and getStatusCode()
to determine what the error cause
was.
Certain errors are due to failures that can be resolved by launching a particular intent.
The resolution intent is available via getResolution()
.
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel
|
flags |
int
|