java.lang.Object |
↳ |
com.google.android.gms.fitness.request.DataSourcesRequest.Builder |
Class Overview
Builder used to create new DataSourceRequests.
Summary
[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(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
DataSourcesRequest.Builder
()
Public Methods
Finishes building and returns the request.
Throws |
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.
Parameters |
dataSourceTypes |
int : 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 .
|
Sets the desired data types to search for on the data sources request. At least one data type
should be set, or build()
will throw an exception.
Parameters |
dataTypes |
DataType : the data types to search for. These can be one of the data types listed in
DataType , or a custom data type.
|