public class NacSharedPreferences
extends java.lang.Object
Constructor and Description |
---|
NacSharedPreferences(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
editAmColor(int color)
Edit the AM color, in the time, of all alarm cards.
|
void |
editAppFirstRun(boolean first)
Edit whether this is the app's first run or not.
|
void |
editAudioSource(java.lang.String source)
Edit the default audio source to use when a new alarm card is created.
|
void |
editAutoDismiss(int index)
Edit the index corresponding to a time in which to auto dismiss the alarm.
|
void |
editCardHeightCollapsed(int height)
Edit the height of the alarm card when it is collapsed.
|
void |
editCardHeightCollapsedDismiss(int height)
Edit the height of the alarm card height it is collapsed, but the dismiss
button is showing.
|
void |
editCardHeightExpanded(int height)
Edit the height of the alarm card when it is expanded.
|
void |
editCardIsMeasured(boolean isMeasured)
Edit the flag indicating if the alarm card has been measured or not.
|
void |
editDayButtonStyle(int style)
Edit the value indicating which day button style to use.
|
void |
editDays(int days)
Edit the default days to use when a new alarm card is created.
|
void |
editDaysColor(int color)
Edit the color of the days an alarm will go off on.
|
void |
editEasySnooze(boolean easy)
Edit the flag indicating whether the user wants to snooze easily or not.
|
void |
editMaxSnooze(int max)
Edit the max number of times a user is able to snooze an alarm.
|
void |
editMediaPath(java.lang.String path)
Edit the default media path to use when a new alarm card is created.
|
void |
editName(java.lang.String name)
Edit the default name to use when a new alarm card is created.
|
void |
editNameColor(int color)
Edit the color of the name of an alarm.
|
void |
editNextAlarmFormat(int format)
Edit the time format to display the next alarm in.
|
void |
editPmColor(int color)
Edit the PM color, in the time, of all alarm cards.
|
void |
editPreviousVolume(int previous)
Edit the previous system volume, before an alarm goes off.
|
void |
editRateMyAppCounter(int counter)
Edit the counter that will indicate whether it is time to show dialog to
Rate My App.
|
void |
editRepeat(boolean repeat)
Edit the default repeat value when a new alarm card is created.
|
void |
editShouldRefreshMainActivity(boolean shouldRefresh)
Edit the value indicating whether the main activity should be refreshed or
not.
|
void |
editSnoozeCount(int id,
int count)
Edit the current snooze count for an alarm with the given ID.
|
void |
editSnoozeDuration(int duration)
Edit the snooze duration preference value.
|
void |
editSpeakFrequency(int freq)
Edit the frequency at which the text-to-speech should go off when an alarm
is going off.
|
void |
editSpeakToMe(boolean speak)
Edit the flag indicating whether text-to-speech should be used when an
alarm goes off.
|
void |
editStartWeekOn(int start)
Edit the index indicating which day to start the week on.
|
void |
editThemeColor(int color)
Edit the theme color.
|
void |
editTimeColor(int color)
Edit the color of the time for all alarm cards.
|
void |
editUseNfc(boolean useNfc)
Edit the default use NFC value when an alarm is created.
|
void |
editVibrate(boolean vibrate)
Edit the default vibrate value when an alarm is created.
|
int |
getAmColor() |
boolean |
getAppFirstRun() |
java.lang.String |
getAudioSource() |
int |
getAutoDismiss() |
java.lang.String |
getAutoDismissSummary() |
static java.lang.String |
getAutoDismissSummary(android.content.Context context,
int index) |
int |
getAutoDismissTime() |
static int |
getAutoDismissTime(int index) |
boolean |
getBoolean(java.lang.String key,
boolean defValue) |
int |
getCardHeightCollapsed() |
int |
getCardHeightCollapsedDismiss() |
int |
getCardHeightExpanded() |
boolean |
getCardIsMeasured() |
NacSharedConstants |
getConstants() |
android.content.Context |
getContext() |
int |
getDayButtonStyle() |
int |
getDays() |
int |
getDaysColor() |
java.lang.String |
getDaysSummary() |
NacSharedDefaults |
getDefaults() |
boolean |
getEasySnooze() |
boolean |
getExpandNewAlarm() |
android.content.SharedPreferences |
getInstance() |
int |
getInt(java.lang.String key,
int defValue) |
NacSharedKeys |
getKeys() |
int |
getMaxSnooze() |
java.lang.String |
getMaxSnoozeSummary() |
static java.lang.String |
getMaxSnoozeSummary(android.content.Context context,
int index) |
int |
getMaxSnoozeValue() |
static int |
getMaxSnoozeValue(int index) |
static java.lang.String |
getMediaMessage(android.content.Context context,
java.lang.String path) |
java.lang.String |
getMediaPath() |
java.lang.String |
getMediaSummary() |
static java.lang.String |
getMediaSummary(android.content.Context context,
java.lang.String path) |
int |
getMeridianColor(java.lang.String meridian) |
boolean |
getMissedAlarmNotification() |
java.lang.String |
getName() |
int |
getNameColor() |
static java.lang.String |
getNameMessage(android.content.Context context,
java.lang.String name) |
java.lang.String |
getNameSummary() |
static java.lang.String |
getNameSummary(android.content.Context context,
java.lang.String name) |
int |
getNextAlarmFormat() |
int |
getPmColor() |
boolean |
getPreventAppFromClosing() |
int |
getPreviousVolume() |
int |
getRateMyAppCounter() |
boolean |
getRepeat() |
boolean |
getShouldRefreshMainActivity() |
boolean |
getShowAlarmInfo() |
boolean |
getShuffle() |
int |
getSnoozeCount(int id) |
int |
getSnoozeDuration() |
java.lang.String |
getSnoozeDurationSummary() |
static java.lang.String |
getSnoozeDurationSummary(android.content.Context context,
int index) |
int |
getSnoozeDurationValue() |
static int |
getSnoozeDurationValue(int index) |
int |
getSpeakFrequency() |
java.lang.String |
getSpeakFrequencySummary() |
static java.lang.String |
getSpeakFrequencySummary(android.content.Context context,
int freq) |
boolean |
getSpeakToMe() |
int |
getStartWeekOn() |
java.lang.String |
getString(java.lang.String key,
java.lang.String defValue) |
int |
getThemeColor() |
int |
getTimeColor() |
boolean |
getUpcomingAlarmNotification() |
boolean |
getUseNfc() |
boolean |
getVibrate() |
int |
getVolume() |
void |
incrementRateMyApp()
Increment the rate my app counter.
|
boolean |
isRateMyAppLimit() |
boolean |
isRateMyAppRated() |
void |
postponeRateMyApp()
Set the rate my app counter to the postpone value.
|
void |
ratedRateMyApp()
Set the rate my app counter to the rated value.
|
void |
resetRateMyApp()
Reset the rate my app counter.
|
void |
save(android.content.SharedPreferences.Editor editor) |
void |
save(android.content.SharedPreferences.Editor editor,
boolean commit)
Save the changes that were made to the shared preference.
|
void |
saveBoolean(java.lang.String key,
boolean value,
boolean commit)
Save a boolean to the shared preference.
|
void |
saveInt(java.lang.String key,
int value,
boolean commit)
Save an int to the shared preference.
|
void |
saveString(java.lang.String key,
java.lang.String value,
boolean commit)
Save a string to the shared preference.
|
public NacSharedPreferences(android.content.Context context)
public void editAmColor(int color)
public void editAppFirstRun(boolean first)
public void editAudioSource(java.lang.String source)
public void editAutoDismiss(int index)
public void editCardHeightCollapsed(int height)
public void editCardHeightCollapsedDismiss(int height)
public void editCardHeightExpanded(int height)
public void editCardIsMeasured(boolean isMeasured)
public void editDayButtonStyle(int style)
public void editDays(int days)
public void editDaysColor(int color)
public void editEasySnooze(boolean easy)
public void editMaxSnooze(int max)
public void editMediaPath(java.lang.String path)
public void editName(java.lang.String name)
public void editNameColor(int color)
public void editNextAlarmFormat(int format)
public void editPmColor(int color)
public void editPreviousVolume(int previous)
public void editRateMyAppCounter(int counter)
public void editRepeat(boolean repeat)
public void editSnoozeCount(int id, int count)
public void editSnoozeDuration(int duration)
public void editShouldRefreshMainActivity(boolean shouldRefresh)
public void editSpeakFrequency(int freq)
public void editSpeakToMe(boolean speak)
public void editStartWeekOn(int start)
public void editThemeColor(int color)
public void editTimeColor(int color)
public void editUseNfc(boolean useNfc)
public void editVibrate(boolean vibrate)
public boolean getBoolean(java.lang.String key, boolean defValue)
public int getInt(java.lang.String key, int defValue)
public java.lang.String getString(java.lang.String key, java.lang.String defValue)
public int getAmColor()
public boolean getAppFirstRun()
public java.lang.String getAudioSource()
public int getAutoDismiss()
public java.lang.String getAutoDismissSummary()
getAutoDismissSummary(Context, int)
public static java.lang.String getAutoDismissSummary(android.content.Context context, int index)
public int getAutoDismissTime()
getAutoDismissTime(int)
public static int getAutoDismissTime(int index)
public int getCardHeightCollapsed()
public int getCardHeightCollapsedDismiss()
public int getCardHeightExpanded()
public boolean getCardIsMeasured()
public NacSharedConstants getConstants()
public android.content.Context getContext()
public int getDayButtonStyle()
public int getDays()
public int getDaysColor()
public java.lang.String getDaysSummary()
public NacSharedDefaults getDefaults()
public boolean getEasySnooze()
public boolean getExpandNewAlarm()
public android.content.SharedPreferences getInstance()
public NacSharedKeys getKeys()
public int getMaxSnooze()
public java.lang.String getMaxSnoozeSummary()
getMaxSnoozeSummary(Context, int)
public static java.lang.String getMaxSnoozeSummary(android.content.Context context, int index)
public int getMaxSnoozeValue()
getMaxSnoozeValue(int)
public static int getMaxSnoozeValue(int index)
public java.lang.String getMediaPath()
public static java.lang.String getMediaMessage(android.content.Context context, java.lang.String path)
public java.lang.String getMediaSummary()
getMediaSummary(Context, String)
public static java.lang.String getMediaSummary(android.content.Context context, java.lang.String path)
public int getMeridianColor(java.lang.String meridian)
public boolean getMissedAlarmNotification()
public java.lang.String getName()
public int getNameColor()
public static java.lang.String getNameMessage(android.content.Context context, java.lang.String name)
public java.lang.String getNameSummary()
getNameSummary(Context, String)
public static java.lang.String getNameSummary(android.content.Context context, java.lang.String name)
public int getNextAlarmFormat()
public int getPmColor()
public boolean getPreventAppFromClosing()
public int getPreviousVolume()
public int getRateMyAppCounter()
public boolean getRepeat()
public boolean getShouldRefreshMainActivity()
public boolean getShowAlarmInfo()
public boolean getShuffle()
public int getSnoozeCount(int id)
public int getSnoozeDuration()
public java.lang.String getSnoozeDurationSummary()
getSnoozeDurationSummary(Context, int)
public static java.lang.String getSnoozeDurationSummary(android.content.Context context, int index)
public int getSnoozeDurationValue()
getSnoozeDurationValue(int)
public static int getSnoozeDurationValue(int index)
public int getSpeakFrequency()
public java.lang.String getSpeakFrequencySummary()
getSpeakFrequencySummary(Context, int)
public static java.lang.String getSpeakFrequencySummary(android.content.Context context, int freq)
public boolean getSpeakToMe()
public int getStartWeekOn()
public int getThemeColor()
public int getTimeColor()
public boolean getUpcomingAlarmNotification()
public boolean getUseNfc()
public boolean getVibrate()
public int getVolume()
public void incrementRateMyApp()
public boolean isRateMyAppLimit()
public boolean isRateMyAppRated()
public void postponeRateMyApp()
public void ratedRateMyApp()
public void resetRateMyApp()
public void save(android.content.SharedPreferences.Editor editor)
save(SharedPreferences.Editor, boolean)
public void save(android.content.SharedPreferences.Editor editor, boolean commit)
public void saveBoolean(java.lang.String key, boolean value, boolean commit)
public void saveInt(java.lang.String key, int value, boolean commit)
public void saveString(java.lang.String key, java.lang.String value, boolean commit)