LGV_Timer_StateDelegate

protocol LGV_Timer_StateDelegate : AnyObject

This protocol allows observers of the app status.

  • Called when the timer status changes

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerStatus: TimerSettingTuple, from: TimerStatus)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerStatus

    The timer setting tuple that was affected.

    from

    The original state before the change.

  • Called when the timer mode changes

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerDisplayMode: TimerSettingTuple, from: TimerDisplayMode)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerDisplayMode

    The timer setting tuple that was affected.

    from

    The original state before the change.

  • Called when the timer current time changes

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerCurrentTime: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerCurrentTime

    The timer setting tuple that was affected.

    from

    The original time before the change.

  • Called when the timer warning time setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerWarnTime: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerWarnTime

    The timer setting tuple that was affected.

    from

    The original time before the change.

  • Called when the timer final time setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerFinalTime: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerFinalTime

    The timer setting tuple that was affected.

    from

    The original time before the change.

  • Called when the timer starting time setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerTimeSet: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerTimeSet

    The timer setting tuple that was affected.

    from

    The original time before the change.

  • Called when the timer sound ID setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerSoundID: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerSoundID

    The timer setting tuple that was affected.

    from

    The original ID before the change.

  • Called when the timer song URL setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerSongURL: TimerSettingTuple, from: String)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerSongURL

    The timer setting tuple that was affected.

    from

    The original URL (as a String) before the change.

  • Called when the timer alert mode setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerAlertMode: TimerSettingTuple, from: AlertMode)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerAlertMode

    The timer setting tuple that was affected.

    from

    The original mode before the change.

  • Called when the timer sound mode setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerSoundMode: TimerSettingTuple, from: SoundMode)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerSoundMode

    The timer setting tuple that was affected.

    from

    The original mode before the change.

  • Called when the next timer ID setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateSucceedingTimerID: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateSucceedingTimerID

    The timer setting tuple that was affected.

    from

    The original ID before the change.

  • Called when the audible ticks setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateAudibleTicks: TimerSettingTuple, from: Bool)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateAudibleTicks

    The timer setting tuple that was affected.

    from

    The original state before the change.

  • Called when the color theme setting is changed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didUpdateTimerColorTheme: TimerSettingTuple, from: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didUpdateTimerColorTheme

    The timer setting tuple that was affected.

    from

    The original state before the change.

  • Called when a timer is added

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didAddTimer: TimerSettingTuple)

    Parameters

    appState

    The instance that called this delegate method.

    didAddTimer

    The timer setting tuple that was affected.

  • Called when a timer is about to be removed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, willRemoveTimer: TimerSettingTuple)

    Parameters

    appState

    The instance that called this delegate method.

    didAddTimer

    The timer setting tuple that will be removed.

  • Called when a timer was removed

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didRemoveTimerAtIndex: Int)

    Parameters

    appState

    The instance that called this delegate method.

    didRemoveTimerAtIndex

    The 0-based index of the imer that was removed.

  • Called when a timer was selected

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didSelectTimer: TimerSettingTuple!)

    Parameters

    appState

    The instance that called this delegate method.

    didSelectTimer

    The timer setting tuple that was affected. It is optional, as it is possible to select no timer.

  • Called when a timer was deselected

    Declaration

    Swift

    func appState(_ appState: LGV_Timer_State, didDeselectTimer: TimerSettingTuple)

    Parameters

    appState

    The instance that called this delegate method.

    didSelectTimer

    The timer setting tuple that was affected.