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 runsDeclaration
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 updatesDeclaration
Swift
var updateInterval: TimeInterval? { get }
-
Start performing periodic updates, updating every
updateInterval
secondsDeclaration
Swift
func startUpdating(every updateInterval: TimeInterval)
Parameters
updateInterval
The interval between updates, measured in seconds
-
startUpdating()
Extension methodStarts performing period updated. The value of the static variable
defaultUpdateInterval
will used for the update interval.Declaration
Swift
public func startUpdating()
-
stopUpdating()
Extension methodDeclaration
Swift
public func stopUpdating()