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
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[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()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public Methods
public
boolean
equals
(Object that)
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
String
toString
()
public
void
writeToParcel
(Parcel parcel, int flags)
Parameters |
parcel |
Parcel
|
flags |
int
|