Methods
(static) getAccessibility() → {Boolean}
Function to get the current accessibility setting
- Source:
Returns:
boolean value of whether the user wants app to be accessible by keystroke
- Type
- Boolean
(static) getAccessibility() → {Boolean}
Function to get the current accessibility setting
- Source:
Returns:
boolean value of whether the user wants app to be accessible by keystroke
- Type
- Boolean
(static) getCalm() → {Boolean}
Function to get the current Calm value
- Source:
Returns:
boolean value of whether the user wanted calm more
- Type
- Boolean
(static) getCalm() → {Boolean}
Function to get the current Calm value
- Source:
Returns:
boolean value of whether the user wanted calm more
- Type
- Boolean
(static) getDark() → {Boolean}
Function to get the current sound
- Source:
Returns:
boolean value of whether or not dark mode is enabled
- Type
- Boolean
(static) getDark() → {Boolean}
Function to get the current sound
- Source:
Returns:
boolean value of whether or not dark mode is enabled
- Type
- Boolean
(static) getDayCounts() → {Number}
Function to get the pomodoro completed for the day and check if it should reset local storage
- Source:
Returns:
total amount of Pomodoro completed for the day
- Type
- Number
(static) getDayCounts() → {Number}
Function to get the pomodoro completed for the day and check if it should reset local storage
- Source:
Returns:
total amount of Pomodoro completed for the day
- Type
- Number
(static) getLongBreak() → {Number}
Function to get the duration of the long break timer in minutes
- Source:
Returns:
saved value of long break duration
- Type
- Number
(static) getLongBreak() → {Number}
Function to get the duration of the long break timer in minutes
- Source:
Returns:
saved value of long break duration
- Type
- Number
(static) getMode() → {String}
Function to be called to retrieve the last mode saved
- Source:
Returns:
accessibility setting of accessibility
- Type
- String
(static) getMode() → {String}
Function to be called to retrieve the last mode saved
- Source:
Returns:
accessibility setting of accessibility
- Type
- String
(static) getShortBreak() → {Number}
Function to get the duration of the short break timer in minutes
- Source:
Returns:
saved value of short break duration
- Type
- Number
(static) getShortBreak() → {Number}
Function to get the duration of the short break timer in minutes
- Source:
Returns:
saved value of short break duration
- Type
- Number
(static) getSound() → {String}
Function to get the current sound
- Source:
Returns:
last saved sound for alarm
- Type
- String
(static) getSound() → {String}
Function to get the current sound
- Source:
Returns:
last saved sound for alarm
- Type
- String
(static) getVolume() → {Number}
Function to get the current volume value
- Source:
Returns:
value of last saved volume
- Type
- Number
(static) getVolume() → {Number}
Function to get the current volume value
- Source:
Returns:
value of last saved volume
- Type
- Number
(static) getWork() → {Number}
Function to get the duration of the work timer in minutes
- Source:
Returns:
saved value of work mode duration
- Type
- Number
(static) getWork() → {Number}
Function to get the duration of the work timer in minutes
- Source:
Returns:
saved value of work mode duration
- Type
- Number
(static) setAccessibility(accessibility)
Function to be called whenever the onClick event is listened to for accessibility
Parameters:
Name | Type | Description |
---|---|---|
accessibility |
Boolean | setting of accessibility |
- Source:
(static) setAccessibility(accessibility)
Function to be called whenever the onClick event is listened to for accessibility
Parameters:
Name | Type | Description |
---|---|---|
accessibility |
Boolean | setting of accessibility |
- Source:
(static) setCalm(calm)
Function to be called whenever the onClick event is listened to for calm mode
Parameters:
Name | Type | Description |
---|---|---|
calm |
Boolean | setting of current calm mode |
- Source:
(static) setCalm(calm)
Function to be called whenever the onClick event is listened to for calm mode
Parameters:
Name | Type | Description |
---|---|---|
calm |
Boolean | setting of current calm mode |
- Source:
(static) setDark(dark)
Function to be called whenever the onClick event is listened to for dark mode
Parameters:
Name | Type | Description |
---|---|---|
dark |
Boolean | Setting of current dark mode |
- Source:
(static) setDark(dark)
Function to be called whenever the onClick event is listened to for dark mode
Parameters:
Name | Type | Description |
---|---|---|
dark |
Boolean | Setting of current dark mode |
- Source:
(static) setDayCounts(count)
Function to set the pomodoro completed for the day into local storage
Parameters:
Name | Type | Description |
---|---|---|
count |
Number | pomodoro completed |
- Source:
(static) setDayCounts(count)
Function to set the pomodoro completed for the day into local storage
Parameters:
Name | Type | Description |
---|---|---|
count |
Number | pomodoro completed |
- Source:
(static) setLongBreak(work)
Function to be called whenever the duration of long break is changed
Parameters:
Name | Type | Description |
---|---|---|
work |
Number | duration of new long break |
- Source:
(static) setLongBreak(work)
Function to be called whenever the duration of long break is changed
Parameters:
Name | Type | Description |
---|---|---|
work |
Number | duration of new long break |
- Source:
(static) setMode(mode)
Function to be called to set the current mode of the timer
Parameters:
Name | Type | Description |
---|---|---|
mode |
String | setting of accessibility |
- Source:
(static) setMode(mode)
Function to be called to set the current mode of the timer
Parameters:
Name | Type | Description |
---|---|---|
mode |
String | setting of accessibility |
- Source:
(static) setShortBreak(work)
Function to be called whenever the duration of short break is changed
Parameters:
Name | Type | Description |
---|---|---|
work |
Number | duration of new short break |
- Source:
(static) setShortBreak(work)
Function to be called whenever the duration of short break is changed
Parameters:
Name | Type | Description |
---|---|---|
work |
Number | duration of new short break |
- Source:
(static) setSound(sound)
Function to be called whenever the current sound is changed
Parameters:
Name | Type | Description |
---|---|---|
sound |
String | alarm sound saved |
- Source:
(static) setSound(sound)
Function to be called whenever the current sound is changed
Parameters:
Name | Type | Description |
---|---|---|
sound |
String | alarm sound saved |
- Source:
(static) setVolume(vol)
Function to be called whenever the current volume is changed
Parameters:
Name | Type | Description |
---|---|---|
vol |
Number | volume saved |
- Source:
(static) setVolume(vol)
Function to be called whenever the current volume is changed
Parameters:
Name | Type | Description |
---|---|---|
vol |
Number | volume saved |
- Source:
(static) setWork(work)
Function to be called whenever the duration of work mode is changed
Parameters:
Name | Type | Description |
---|---|---|
work |
Number | duration of new work mode |
- Source:
(static) setWork(work)
Function to be called whenever the duration of work mode is changed
Parameters:
Name | Type | Description |
---|---|---|
work |
Number | duration of new work mode |
- Source: