public static class

Goal.Recurrence

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

Class Overview

A recurrence period of a recurring goal.

Summary

Nested Classes
@interface Goal.Recurrence.RecurrenceUnit Unit of a recurrence. 
Constants
int UNIT_DAY Unit constant representing a day.
int UNIT_MONTH Unit constant representing a month.
int UNIT_WEEK Unit constant representing a week.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<Goal.Recurrence> CREATOR
Public Constructors
Goal.Recurrence(int count, int unit)
Public Methods
boolean equals(Object that)
int getCount()
Returns the count of unit of the recurrence.
int getUnit()
Returns the unit of the recurrence.
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int UNIT_DAY

Unit constant representing a day.

Constant Value: 1 (0x00000001)

public static final int UNIT_MONTH

Unit constant representing a month.

Constant Value: 3 (0x00000003)

public static final int UNIT_WEEK

Unit constant representing a week.

Constant Value: 2 (0x00000002)

Fields

public static final Creator<Goal.Recurrence> CREATOR

Public Constructors

public Goal.Recurrence (int count, int unit)

Parameters
count int
unit int

Public Methods

public boolean equals (Object that)

Parameters
that Object
Returns
boolean

public int getCount ()

Returns the count of unit of the recurrence. For example, it would return '3' for a goal that recurs every 3 days.

Returns
int

public int getUnit ()

Returns the unit of the recurrence. The unit should be one of UNIT_DAY, UNIT_WEEK and UNIT_MONTH.

Returns
int

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int