java.lang.Object |
↳ |
com.google.android.gms.fitness.data.Goal.MetricObjective |
Class Overview
A metric objective, which uses a metric value to determine whether the goal is met. Metrics
include step, distance and calories. e.g. 10k steps, 3km, 2k calories.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
Public Methods |
boolean
|
equals(Object that)
|
String
|
getDataTypeName()
Returns the data type name of the metric the goal tracks, like com.google.step_count.delta , com.google.distance.delta , etc.
|
double
|
getValue()
Returns the objective metric's value.
|
int
|
hashCode()
|
String
|
toString()
|
void
|
writeToParcel(Parcel dest, int flags)
|
[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 Constructors
public
Goal.MetricObjective
(String dataTypeName, double value)
Parameters |
dataTypeName |
String
|
value |
double
|
Public Methods
public
boolean
equals
(Object that)
public
String
getDataTypeName
()
Returns the data type name of the metric the goal tracks, like com.google.step_count.delta
, com.google.distance.delta
, etc. e.g. Returns
"com.google.step_count.delta" for a goal to "take 10k steps a day".
public
double
getValue
()
Returns the objective metric's value. e.g. Returns 10,000 for a goal to "take 10k steps a
day".
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel
|
flags |
int
|