public class

SessionReadRequest

extends Object
implements SafeParcelable
java.lang.Object
   ↳ com.google.android.gms.fitness.request.SessionReadRequest

Class Overview

Request for reading Session data from Google Fit. Use this request to specify the sessions to read, as well as data sets that should be read for each session.

Example usage for reading all sessions during a time interval, as well as location data points for each session:

     new SessionReadRequest.Builder()
         .setTimeInterval(startTime.getMillis(), endTime.getMillis())
         .read(DataTypes.LOCATION_SAMPLE)
         .build();
 

A valid time interval is 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()}

An 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 a new SessionReadRequest. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
Fields
public static final Creator<SessionReadRequest> CREATOR
Public Methods
int describeContents()
boolean equals(Object o)
int hashCode()
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<SessionReadRequest> CREATOR

Public Methods

public int describeContents ()

public boolean equals (Object o)

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)