public class

DataSourcesRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.fitness.request.DataSourcesRequest

Class Overview

Request for finding data sources in Google Fit. A request can be built using the DataSourcesRequest.Builder. Use the parameters of the request to specify which data sources should be returned. Example usage:

     new DataSourcesRequest.Builder()
         .setDataTypes(DataTypes.STEP_COUNT_CUMULATIVE, DataTypes.STEP_COUNT_DELTA)
         .setDataSourceTypes(DataSource.Type.RAW)
         .build();
 

Summary

Nested Classes
class DataSourcesRequest.Builder Builder used to create new DataSourceRequests. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<DataSourcesRequest> CREATOR
Public Methods
int describeContents()
List<DataType> getDataTypes()
Returns all of the data types requested.
String toString()
void writeToParcel(Parcel parcel, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<DataSourcesRequest> CREATOR

Public Methods

public int describeContents ()

public List<DataType> getDataTypes ()

Returns all of the data types requested.

Returns
  • the requested data types, non-empty

public String toString ()

public void writeToParcel (Parcel parcel, int flags)