java.lang.Object |
↳ |
com.google.android.gms.fitness.request.GoalsReadRequest.Builder |
Class Overview
Builder used to create new GoalsReadRequest.
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
GoalsReadRequest.Builder
()
Public Methods
Adds a specific activity to this request.
This method can be called multiple times to add multiple activities in the request.
Parameters |
activityName |
String :
the name of the activity we're querying goals for. |
Throws |
IllegalStateException |
if the activity name is invalid.
|
Adds a specific data type to this request. Goals that track the specified data types should
be read. At least one specific data type should be set to build the request.
This method can be called multiple times to add multiple data types in the request.
Parameters |
dataType |
DataType :
the data type we're querying goals for. |
Throws |
NullPointerException |
if the data type is null
|
Adds a objective type to this request.
This method can be called multiple times to add multiple objective types in the request.
Throws |
IllegalStateException |
if the objectiveType is invalid.
|
Finishes building and returns the request.