public static class

Goal.FrequencyObjective

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.fitness.data.Goal.FrequencyObjective

Class Overview

A frequency objective, which uses the number of activity segments to determine whether the goal is met. e.g. 3 times (per week).

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<Goal.FrequencyObjective> CREATOR
Public Constructors
Goal.FrequencyObjective(int frequency)
Public Methods
boolean equals(Object that)
int getFrequency()
Returns the objective frequency of the goal.
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<Goal.FrequencyObjective> CREATOR

Public Constructors

public Goal.FrequencyObjective (int frequency)

Parameters
frequency int

Public Methods

public boolean equals (Object that)

Parameters
that Object
Returns
boolean

public int getFrequency ()

Returns the objective frequency of the goal. e.g. Returns 2 for a goal to "do yoga 2x a week".

Returns
int

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int