DataSourcesRequest

public class DataSourcesRequest extends Object
implements Parcelable

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();
 

Nested Class Summary

class DataSourcesRequest.Builder Builder used to create new DataSourceRequests. 

Inherited Constant Summary

Field Summary

public static final Creator<DataSourcesRequest> CREATOR

Public Method Summary

List<DataType>
getDataTypes()
Returns all of the data types requested.
String
void
writeToParcel(Parcel parcel, int flags)

Inherited Method Summary

Fields

public static final Creator<DataSourcesRequest> CREATOR

Public Methods

public List<DataType> getDataTypes ()

Returns all of the data types requested.

Returns
  • the requested data types

public String toString ()

public void writeToParcel (Parcel parcel, int flags)