Contents

scheduleParameterCurve(_:atTime:)

Schedules a parameter curve to begin transitioning a parameter at a certain time.

Declaration

func scheduleParameterCurve(_ parameterCurve: CHHapticParameterCurve, atTime time: TimeInterval) throws

Parameters

  • parameterCurve:

    The curve along which to vary the parameter.

  • time:

    The time at which to begin applying the parameter curve.

Discussion

Scheduling a parameter curve tells the haptic pattern player to vary a parameter gradually along the curve. For example, if the intensity of a haptic pattern is 0 at the time of application, then a curve created to set the haptic intensity to 1 will smoothly hit every single continuous value between 0 and 1 during the transition.

[Image]

Scheduling a parameter curve is analogous to sending a dynamic parameter with sendParameters(_:atTime:); the only difference is that the curve transitions the parameter gradually, whereas the dynamic parameter changes the parameter immediately at a certain time.

Schedule a parameter curve for one parameter at a time, and specify control points to characterize the curve’s shape. For more information on creating or specifying a parameter curve, see CHHapticParameterCurve.

See Also

Sending Parameters to a Haptic