TheBestClockPrefs
@objc(TheBestClockPrefs)
class TheBestClockPrefs : NSObject- 
                  
                  DeclarationSwift class func registerDefaults()
- 
                  
                  This is the key for the prefs used by this app. DeclarationSwift private static let _mainPrefsKey: String
- 
                  
                  The fixed number of alarms DeclarationSwift private static let _numberOfAlarms: Int
- 
                  
                  We load the user prefs into this Dictionary object. DeclarationSwift private var _loadedPrefs: NSMutableDictionary!
- 
                  
                  The alarms that we have loaded DeclarationSwift private var _alarms: [TheBestClockAlarmSetting]
- 
                  
                  These are the keys we use for our persistent prefs dictionary. See moreDeclarationSwift private enum PrefsKeys : String
- 
                  
                  This method loads the main prefs into our instance storage. NOTE: This will overwrite any unsaved changes to the current _loadedPrefs property. DeclarationSwift func loadPrefs() -> BoolReturn Valuea Bool. True, if the load was successful. 
- 
                  
                  This is our minimum brightness threshold. We don’t let the text and stuff quite make it to 0. DeclarationSwift static let minimumBrightness: CGFloat
- 
                  
                  This tells us whether or not the device is set for military time. DeclarationSwift static var using12hClockFormat: Bool { get }
- 
                  
                  This tells us whether or not the device is set for kilometers. DeclarationSwift static var usingKilometeres: Bool { get }
- 
                  
                  Returns the 0-based index of the first weekday for the current calendar (0 = Sunday, 6 = Saturday). DeclarationSwift static var indexOfWeekStart: Int { get }
- 
                  
                  Gets a localized version of the weekday name from an index. Cribbed from Here: http://stackoverflow.com/questions/7330420/how-do-i-get-the-name-of-a-day-of-the-week-in-the-users-locale#answer-34289913 DeclarationSwift class func weekdayNameFromWeekdayNumber(_ weekdayNumber: Int, short: Bool = false) -> StringReturn ValueThe localized, full-length weekday name (or shortened, if short is true). 
- 
                  
                  DeclarationSwift var alarms: [TheBestClockAlarmSetting] { get set }Return ValueAn Array of alarm settings objects. 
- 
                  
                  DeclarationSwift var snoozeCount: Int { get set }Return Valuethe number of snoozes to allow. Ignored, if noSnoozeLimit is true. 
- 
                  
                  DeclarationSwift var noSnoozeLimit: Bool { get }Return Valuetrue, if we are in “Forever Snooze” mode (no limit). READ ONLY 
- 
                  
                  DeclarationSwift var selectedColor: Int { get set }Return Valuethe selected color index, as an Int. 
- 
                  
                  DeclarationSwift var selectedFont: Int { get set }Return Valuethe selected font index, as an Int. 
- 
                  
                  DeclarationSwift var brightnessLevel: CGFloat { get set }Return Valuethe brightness level, as a CGFloat. 
- 
                  
                  This method simply saves the main preferences Dictionary into the standard user defaults. DeclarationSwift func savePrefs()
 View on GitHub
            View on GitHub
           TheBestClockPrefs Class Reference
      TheBestClockPrefs Class Reference