CATempo

public class CATempo : Tempo

CATempo uses a CADisplayLink object to send out tempo updates that are synchronized with the refresh rate of the display on iOS.

  • This CADisplayLink object is used to provide tempo updates.

    Remarks

    This class provides several mechanisms for adjusting the update rate. See the CADisplayLink documentation for more information.

    Warning

    Do not call the addToRunLoop:forMode:, removeFromRunLoop:forMode:, or invalidate methods on this object, as its state is handled by CATempo directly.

    Declaration

    Swift

    public var displayLink: CADisplayLink?
  • Initializes a new CATempo object and adds the internal CADisplayLink object to the main run loop.

    Declaration

    Swift

    public override init()