TempoDriven
public protocol TempoDriven: TempoDelegate
This protocol represents objects that subscribe to a Tempo
object’s beats. Every movement of a value occurs because time has changed. These beats drive the motion, sending timestamps by which delta values can be calculated. All standard MotionMachine motion classes conform to this protocol.
-
A concrete
Tempo
subclass that provides an updatebeat
to drive a motion.Note
It is expected that classes implementing this protocol also subscribe to the Tempo object’sTempoDelegate
delegate methods.Declaration
Swift
var tempo: Tempo?
-
Tells a
TempoDriven
object to cease listening to updates from itsTempo
object.Seealso
tempoDeclaration
Swift
func stopTempoUpdates()