CustomisableUpdateIntervalControllable

public protocol CustomisableUpdateIntervalControllable : Controllable

A source that supports updating its properties at a given time interval

  • The default update interval that will be used when calling startUpdating() without specifying the update interval. This value is unique per-source and does not persist between app runs

    Declaration

    Swift

    static var defaultUpdateInterval: TimeInterval { get set }
  • The time interval between property updates. A value of nil indicates that the source is not performing periodic updates

    Declaration

    Swift

    var updateInterval: TimeInterval? { get }
  • Start performing periodic updates, updating every updateInterval seconds

    Declaration

    Swift

    func startUpdating(every updateInterval: TimeInterval)

    Parameters

    updateInterval

    The interval between updates, measured in seconds

  • startUpdating() Extension method

    Starts performing period updated. The value of the static variable defaultUpdateInterval will used for the update interval.

    Declaration

    Swift

    public func startUpdating()
  • stopUpdating() Extension method

    Declaration

    Swift

    public func stopUpdating()