Instance Method

sendParameters(_:atTime:)

Sends an array of haptic parameters, starting at the specified time.

Required.

Declaration

func sendParameters(_ parameters: [CHHapticDynamicParameter], atTime time: TimeInterval) throws

Parameters

parameters

An array of dynamic parameters to send together.

time

The time at which to send the dynamic parameters.

error

Any error that occurs during the sending process. If no error occurs, the value is nil.

Discussion

If time is 0 or any value less than the haptic engine's currentTime, this method sends parameters immediately.

See Also

Sending Parameters to a Haptic

func scheduleParameterCurve(CHHapticParameterCurve, atTime: TimeInterval)

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

Required.