GoalsReadRequest

public classGoalsReadRequestextendsObject
implementsParcelable

Request for reading currentGoalsfrom Google Fit.

Nested Class Summary

class GoalsReadRequest.Builder Builder used to create new GoalsReadRequest.

Inherited Constant Summary

Field Summary

public static finalCreator<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
String
void
writeToParcel(Parcelparcel, int flags)

Inherited Method Summary

Fields

public static finalCreator<GoalsReadRequest> CREATOR

Public Methods

public booleanequals(Objecto)

publicList<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.

publicList<DataType> getDataTypes()

Returns the data types specified in the request. Goals not tracking these data types will be filtered.

Returns
  • All specified data types.

publicList<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_FREQUENCYconstants.

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.

public inthashCode()

publicStringtoString()

public voidwriteToParcel(Parcelparcel, int flags)