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
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)
|
|
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 Constructors
public
Goal.Recurrence
(int count, int unit)
Parameters |
count |
int
|
unit |
int
|
Public Methods
public
boolean
equals
(Object that)
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.
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel
|
flags |
int
|