TimerSetController

class TimerSetController : A_TimerSetPickerController
  • Segue ID to go to settings

    Declaration

    Swift

    static let switchToSettingsSegueID: String
  • Segue ID to start the timer

    Declaration

    Swift

    static let startTimerSegueID: String
  • The buton to go into settings

    Declaration

    Swift

    @IBOutlet
    weak var setupButton: UIBarButtonItem!
  • The picker view to set the timer time

    Declaration

    Swift

    @IBOutlet
    weak var setTimePickerView: UIPickerView!
  • The button that exposes the next timer picker

    Declaration

    Swift

    @IBOutlet
    weak var nextTimerButton: UIButton!
  • The big start button below the picker

    Declaration

    Swift

    @IBOutlet
    weak var bigStartButton: UIButton!
  • The label that displays the current set time

    Declaration

    Swift

    @IBOutlet
    weak var timeDisplayLabel: UILabel!
  • The container for the next timer selection picker

    Declaration

    Swift

    @IBOutlet
    weak var nextTimerSelectionContainer: UIView!
  • The picker view for the next timer selection

    Declaration

    Swift

    @IBOutlet
    weak var nextTimerPickerView: UIPickerView!
  • The little traffic lights image in the label, if we are in Poudium or Dual mode

    Declaration

    Swift

    @IBOutlet
    weak var trafficLightsImageView: UIImageView!
  • The actual running timer controller

    Declaration

    Swift

    var runningTimer: TimerRuntimeViewController!
  • Sets up the display to its current state

    Declaration

    Swift

    private func _setUpDisplay()
  • Bring in the setup screen button hit.

    Declaration

    Swift

    @IBAction
    func setupButtonHit(_ sender: Any)
  • Called when the start button is hit

    Declaration

    Swift

    @IBAction
    func startButtonHit(_ sender: Any)

    Parameters

    sender

    ignored

  • Called when the next timer setup button is hit.

    Declaration

    Swift

    @IBAction
    func nextTimerButtonHit(_ sender: UIButton)

    Parameters

    sender

    ignored

  • Called to select the next timer

    Declaration

    Swift

    @IBAction
    func setSelectedNextTimer(_: Any! = nil)
  • Bring in the setup screen.

    Declaration

    Swift

    func bringInSettingsScreen()
  • Update the time set label.

    Declaration

    Swift

    func updateTimeDisplayLabel()
  • Start the Timer.

    Declaration

    Swift

    func startTimer()
  • Update the timer to the current state

    Declaration

    Swift

    func updateTimer()
  • Called to tick the timer

    Declaration

    Swift

    func tick(times inTimes: Int = 1)
  • Called when the view has finished loading.

    Declaration

    Swift

    override func viewDidLoad()
  • Called when the view will display.

    Declaration

    Swift

    override func viewWillAppear(_ animated: Bool)
  • Called when the view will go away.

    Declaration

    Swift

    override func viewWillDisappear(_ animated: Bool)
  • Called when the view has finished displaying.

    Declaration

    Swift

    override func viewDidLayoutSubviews()
  • Called when we are about to bring in the setup controller.

    Declaration

    Swift

    override func prepare(for segue: UIStoryboardSegue, sender: Any?)
  • This method adds all the accessibility stuff.

    Declaration

    Swift

    override func addAccessibilityStuff()
  • Called when row is selected in the time or next timer picker

    Declaration

    Swift

    func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)

    Parameters

    pickerView

    The UIPickerView calling this

    didSelectRow

    The 0-based row index that was selected

    inComponent

    The 0-based component index that was selected

  • Declaration

    Swift

    override func numberOfComponents(in pickerView: UIPickerView) -> Int

    Parameters

    in

    The UIPickerView calling this

    Return Value

    1, if the picker is the next timer picker, or 3, if it is the time set picker

  • Declaration

    Swift

    override func pickerView(_ pickerView: UIPickerView, widthForComponent component: Int) -> CGFloat

    Parameters

    pickerView

    The UIPickerView calling this

    widthForComponent

    The 0-based index of the component.

    Return Value

    the width, in display units, of the referenced picker component

  • Declaration

    Swift

    override func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int

    Parameters

    numberOfRowsInComponent

    The 0-based index of the component.

  • Declaration

    Swift

    override func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView

    Parameters

    pickerView

    The UIPickerView calling this

    viewForRow

    The 0-based index of the row.

    forComponent

    The 0-based index of the component.

    reusing

    Any view being reused (ignored)

    Return Value

    a UIView, containing the picker cell.

  • Declaration

    Swift

    override func pickerView(_ inPickerView: UIPickerView, accessibilityLabelForComponent inComponent: Int) -> String?

    Parameters

    accessibilityLabelForComponent

    The 0-based index of the component.

    Return Value

    The accessibility label for the given component.