Instance Method

start(atTime:)

Starts playing the pattern at the specified time.

Required.

Declaration

func start(atTime time: TimeInterval) throws

Parameters

time

The time from which to start playing the pattern.

outError

An error that contains information about why the pattern player couldn't start, or nil if no error occurred.

Discussion

If time is 0 or any value less than the haptic engine's currentTime, the pattern starts playing immediately. If you call this method on a player that's already playing, it restarts itself at the beginning of the pattern.

See Also

Starting and Stopping Playback

func stop(atTime: TimeInterval)

Stops playing the pattern at the specified time.

Required.

func cancel()

Stops the pattern player immediately and returns the specified error.

Required.