Instance Method

seek(toOffset:)

Jumps to the specified offset time in playing the haptic.

Required.

Declaration

func seek(toOffset offsetTime: TimeInterval) throws

Parameters

offsetTime

The time in the haptic pattern at which to seek playback.

outError

The error to throw in case the player couldn't seek.

See Also

Controlling Playback

func pause(atTime: TimeInterval)

Pauses the haptic player during playback.

Required.

func resume(atTime: TimeInterval)

Resumes playing a paused haptic.

Required.