java.lang.Object | |
↳ | com.google.android.gms.fitness.request.DataSourcesRequest.Builder |
Builder used to create new DataSourceRequests.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Finishes building and returns the request.
| |||||||||||
Sets the data source types that should be searched for in the data sources request.
| |||||||||||
Sets the desired data types to search for on the data sources request.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Finishes building and returns the request.
IllegalStateException | if the builder doesn't have enough data to build a valid request |
---|
Sets the data source types that should be searched for in the data sources request. By default the data sources request will search for all source types. Use this method if you'd like to restrict the search to only raw or only derived data sources. Calling this method multiple times will override the previous calls.
dataSourceTypes | a varargs array representing the types of data sources we're
searching for. Each can be specified as one of the type constants from
DataSource .
|
---|