AI-generated Key Takeaways
-
GoalsReadRequest is used to read current Goals from Google Fit.
-
It includes a Builder class to create new GoalsReadRequest instances.
-
The request allows filtering goals by activity names, data types, and objective types.
Request for reading current Goals from
Google Fit.
Nested Class Summary
| class | GoalsReadRequest.Builder | Builder used to create new GoalsReadRequest. | |
Inherited Constant Summary
Field Summary
| public static final Creator<GoalsReadRequest> | CREATOR |
Public Method Summary
| boolean | |
| List<String> |
getActivityNames()
Returns the names of the activities specified in the request.
|
| List<DataType> |
getDataTypes()
Returns the data types specified in the request.
|
| List<Integer> |
getObjectiveTypes()
Returns the objective types specified in the request.
|
| int |
hashCode()
|
| String |
toString()
|
| void |
writeToParcel(Parcel parcel, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<GoalsReadRequest> CREATOR
Public Methods
public boolean equals (Object o)
public List<String> getActivityNames ()
Returns the names of the activities specified in the request. Goals not related to these activities will be filtered.
Returns
nullif there is no activity specified in the request. If there is no specific activity in the request, no goals will be filtered by activity.
public List<DataType> getDataTypes ()
Returns the data types specified in the request. Goals not tracking these data types will be filtered.
Returns
- All specified data types.
public List<Integer> getObjectiveTypes ()
Returns the objective types specified in the request. A goal will be filtered if its
objective type is not one of the specified types. An objective type should be one of
the
Goal.OBJECTIVE_TYPE_METRIC,
Goal.OBJECTIVE_TYPE_DURATION,
Goal.OBJECTIVE_TYPE_FREQUENCY constants.
Returns
nullif there is no objective type in the request. If there is no specific objective type in the request, no goals will be filtered by objective types.