Timer_MainTabController

class Timer_MainTabController : SwipeableTabBarController, TimerEngineDelegate
  • Called when the view has finished loading.

    Declaration

    Swift

    override func viewDidLoad()
  • This function rebuilds the entire timer hierarchy from scratch.

    Declaration

    Swift

    func updateTimers()
  • This adds a single timer base View Controller to our tracking list.

    Declaration

    Swift

    func addTimerToList(_ inTimer: TimerSetController)

    Parameters

    inTimer

    The timer View Controller to add.

  • This removes a timer view controller from our list.

    Declaration

    Swift

    func removeTimerFromList(_ inTimer: TimerSetController)

    Parameters

    inTimer

    The timer View Controller to remove.

  • This fetches a timer View Controller from our tracking list, based on the timer object passed in.

    Declaration

    Swift

    func getTimerScreen(_ timerObject: TimerSettingTuple) -> TimerSetController!

    Parameters

    timerObject

    The TimerSettingTuple of the View Controller.

  • Declaration

    Swift

    func selectTimer(_ inTimerIndex: Int)
  • Declaration

    Swift

    func deleteTimer(_ inTimerIndex: Int)
  • Declaration

    Swift

    func addNewTimer()
  • Declaration

    Swift

    func addTimer(_ inTimerObject: TimerSettingTuple)
  • Called when we add a new timer.

    Declaration

    Swift

    func timerEngine(_ timerEngine: TimerEngine, didAddTimer: TimerSettingTuple)

    Parameters

    timerEngine

    The TimerEngine instance that is calling this.

    didAddTimer

    The timer setting that was added.

  • Called just before we remove a timer from the timer engine.

    Declaration

    Swift

    func timerEngine(_ timerEngine: TimerEngine, willRemoveTimer: TimerSettingTuple)

    Parameters

    timerEngine

    The TimerEngine instance that is calling this.

    willRemoveTimer

    The timer instance that will be removed.

  • Called just after we removed a timer from the timer engine.

    Declaration

    Swift

    func timerEngine(_ timerEngine: TimerEngine, didRemoveTimerAtIndex: Int)

    Parameters

    timerEngine

    The TimerEngine instance that is calling this.

    didRemoveTimerAtIndex

    The index of the timer that was removed.

  • Called when we select a timer.

    Declaration

    Swift

    func timerEngine(_ timerEngine: TimerEngine, didSelectTimer: TimerSettingTuple!)

    Parameters

    timerEngine

    The TimerEngine instance that is calling this.

    didSelectTimer

    The timer instance that was selected. It can be nil, if no timer was selected.

  • Called when we deselect a timer.

    Declaration

    Swift

    func timerEngine(_ timerEngine: TimerEngine, didDeselectTimer: TimerSettingTuple)

    Parameters

    timerEngine

    The TimerEngine instance that is calling this.

    didSelectTimer

    The timer instance that was deselected.

  • Called when a timer alarm goes off.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, alarm: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    alarm

    The index of the triggered alarm.

  • Called when a timer ticks.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, tick inTimes: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    tick

    The number of ticks to be made (for when we are in a final mode).

  • Called when a timer time changes (ticks).

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedCurrentTimeFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedCurrentTimeFrom

    The time (in epoch seconds) that was the original time.

  • Called when a timer set time is changed.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimeSetFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimeSetFrom

    The time (in epoch seconds) that was the original set time.

  • Called when a timer warning time is changed.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedWarnTimeFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedWarnTimeFrom

    The time (in epoch seconds) that was the original warning time.

  • Called when a timer final time is changed.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedFinalTimeFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedWarnTimeFrom

    The time (in epoch seconds) that was the original final time.

  • Called when a timer status changes (normal, warning, final, alarm).

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerStatusFrom: TimerStatus)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerStatusFrom

    The original status.

  • Called when a timer display mode changes (podium, digital, dual).

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerDisplayModeFrom: TimerDisplayMode)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerDisplayModeFrom

    The original mode.

  • Called when a timer sound ID changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerSoundIDFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerSoundIDFrom

    The original sound ID.

  • Called when a timer’s song URL changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerSongURLFrom: String)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerSongURLFrom

    The original song URL.

  • Called when a timer’s next timer ID changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedSucceedingTimerIDFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedSucceedingTimerIDFrom

    The original succeeding timer ID.

  • Called when a timer’s alert mode (sound, song, silent) changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerAlertModeFrom: AlertMode)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerAlertModeFrom

    The original alert mode.

  • Called when a timer’s sound mode (sound, vibrate, silent) changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerSoundModeFrom: SoundMode)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerSoundModeFrom

    The original sound mode.

  • Called when a timer’s audible ticks setting changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedAudibleTicksFrom: Bool)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedAudibleTicksFrom

    The original audible ticks setting.

  • Called when a timer’s color theme changes.

    Declaration

    Swift

    func timerSetting(_ timerSetting: TimerSettingTuple, changedTimerColorThemeFrom: Int)

    Parameters

    timerSetting

    The Timer setting that is affected by this call.

    changedTimerColorThemeFrom

    The original color theme setting.