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
nilindicates that the source is not performing periodic updatesDeclaration
Swift
var updateInterval: TimeInterval? { get } -
Start performing periodic updates, updating every
updateIntervalsecondsDeclaration
Swift
func startUpdating(every updateInterval: TimeInterval)Parameters
updateIntervalThe interval between updates, measured in seconds
-
startUpdating()Extension methodStarts performing period updated. The value of the static variable
defaultUpdateIntervalwill used for the update interval.Declaration
Swift
public func startUpdating()
-
stopUpdating()Extension methodDeclaration
Swift
public func stopUpdating()
View on GitHub
CustomisableUpdateIntervalControllable Protocol Reference