public class SettingsManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
areNewReleasesNotificationsActive()
Getter
|
static SettingsManager |
getInstance(Context context)
Singleton pattern
|
int |
getNewReleasesNotificationHour()
Getter
|
int |
getNewReleasesNotificationMinutes()
Getter
|
Uri |
getNotificationsSound()
Getter
|
long[] |
getNotificationsVibratePattern()
Getter
|
boolean |
isFirstRun()
Getter
|
void |
setFirstRun(boolean isFirstRun)
Setter
|
void |
setNewReleasesNotificationHour(int hour)
Setter
|
void |
setNewReleasesNotificationMinutes(int minutes)
Setter
|
public static SettingsManager getInstance(Context context)
public boolean isFirstRun()
public int getNewReleasesNotificationHour()
public int getNewReleasesNotificationMinutes()
public boolean areNewReleasesNotificationsActive()
public long[] getNotificationsVibratePattern()
public Uri getNotificationsSound()
public void setFirstRun(boolean isFirstRun)
isFirstRun
- true if it's the first application runpublic void setNewReleasesNotificationHour(int hour)
hour
- the hour for new releases notificationspublic void setNewReleasesNotificationMinutes(int minutes)
minutes
- the minutes for new releases notifications