public class Preferences
extends java.lang.Object
Constructor and Description |
---|
Preferences() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getDefaultHabitColor(int fallbackColor) |
int |
getLastHintNumber()
Returns the number of the last hint shown to the user.
|
long |
getLastHintTimestamp()
Returns the time when the last hint was shown to the user.
|
void |
incrementLaunchCount() |
void |
initialize() |
boolean |
isFirstRun() |
boolean |
isShortToggleEnabled() |
void |
setDefaultHabitColor(int color) |
void |
setFirstRun(boolean isFirstRun) |
void |
setShortToggleEnabled(boolean enabled) |
void |
setShouldReverseCheckmarks(boolean shouldReverse) |
boolean |
shouldReverseCheckmarks() |
void |
updateLastAppVersion() |
void |
updateLastHint(int number,
long timestamp)
Sets the last hint shown to the user, and the time that it was shown.
|
public java.lang.Integer getDefaultHabitColor(int fallbackColor)
public int getLastHintNumber()
public long getLastHintTimestamp()
public void incrementLaunchCount()
public void initialize()
public boolean isFirstRun()
public void setFirstRun(boolean isFirstRun)
public boolean isShortToggleEnabled()
public void setShortToggleEnabled(boolean enabled)
public void setDefaultHabitColor(int color)
public void setShouldReverseCheckmarks(boolean shouldReverse)
public boolean shouldReverseCheckmarks()
public void updateLastAppVersion()
public void updateLastHint(int number, long timestamp)
number
- number of the last hint showntimestamp
- timestamp for the day the last hint was shown