Keys

enum Keys : String

This is an enumeration that will list the prefs keys for us.

  • The timers, stored as a Dictionary (key is the ID).

    Declaration

    Swift

    case timers
  • The timer IDs, stored as an Array. This is how we order the timers.

    Declaration

    Swift

    case timerIDs
  • The current selected timer index. -1 is no timer selected.

    Declaration

    Swift

    case currentTimerIndex
  • If true, then the alarm will use haptics (vibration), in devices that support it.

    Declaration

    Swift

    case useVibrate
  • The alarm mode. It will store one of the AlarmSoundMode values as an Int.

    Declaration

    Swift

    case alarmMode
  • The selected sound. This is a 0-based index (Int).

    Declaration

    Swift

    case selectedSoundIndex
  • If this is true, then going into the running timer screen starts the timer immediately. If false, then it starts as paused.

    Declaration

    Swift

    case startTimerImmediately
  • If this is true, the running timer toolbar is displayed at the top of the screen.

    Declaration

    Swift

    case displayToolbar
  • If this is true, then the running display will be three “traffic lights,” instead of a digital display.

    Declaration

    Swift

    case stoplightMode
  • If this is true, then the toolbar (if in displayToolbar mode) will fade, after a few seconds of inactivity.

    Declaration

    Swift

    case autoHideToolbar
  • These are all the keys, in an Array of String.

    Declaration

    Swift

    static var allKeys: [String] { get }