Class Overview
Request for reading session data from the Google Fit store. Use this request to specify the
session, time range and data source for the query. A valid time interval and valid data
type(s)/data source(s) are mandatory for the request.
Session name and identifier are optional fields that can be used to further filter out the
returned result.
By default, only sessions created by the calling app will be returned. To get sessions created
by other apps, use readSessionsFromAllApps()}
Example usage to get sessions added by all apps:
new SessionReadRequest.Builder()
.setSessionName(sessionName)
.setTimeInterval(startTime.getMillis(), endTime.getMillis(), TimeUnit.MILLISECONDS)
.addDefaultDataSource(dataType)
.readSessionsFromAllApps()
.build();
App can only read public data types or custom data created by itself. Custom data types
created by another app cannot be read.
Summary
| Nested Classes |
|
class |
SessionReadRequest.Builder |
Builder used to create new SessionReadRequest. |
|
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
| int |
CONTENTS_FILE_DESCRIPTOR |
|
| int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
From interface
com.google.android.gms.common.internal.safeparcel.SafeParcelable
|
|
[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()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
android.os.Parcelable
|
abstract
int
|
describeContents()
|
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public Methods
public
int
describeContents
()
public
boolean
equals
(Object o)
public
void
writeToParcel
(Parcel dest, int flags)