public class

GoalsReadRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.fitness.request.GoalsReadRequest

Class Overview

Request for reading current Goals from Google Fit.

Summary

Nested Classes
class GoalsReadRequest.Builder Builder used to create new GoalsReadRequest. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<GoalsReadRequest> CREATOR
Public Methods
boolean equals(Object that)
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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<GoalsReadRequest> CREATOR

Public Methods

public boolean equals (Object that)

Parameters
that Object
Returns
boolean

public List<String> getActivityNames ()

Returns the names of the activities specified in the request. Goals not related to these activities will be filtered.

Returns
List<String> null if 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
List<DataType> 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 OBJECTIVE_TYPE_METRIC, OBJECTIVE_TYPE_DURATION, OBJECTIVE_TYPE_FREQUENCY constants.

Returns
List<Integer> null if 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 int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel parcel, int flags)

Parameters
parcel Parcel
flags int