Contents

CHHapticAdvancedPatternPlayer

A protocol that defines an advanced pattern player capable of looping, seeking, pausing, and resuming haptic playback.

Declaration

protocol CHHapticAdvancedPatternPlayer : CHHapticPatternPlayer

Mentioned in

Overview

Create instances of this pattern player through a CHHapticEngine object by calling a factory method such as makeAdvancedPlayer(with:). When you ask an advanced pattern player to play, pause, or resume a haptic pattern, the player submits those commands to the haptic engine on your behalf.

Unlike CHHapticPatternPlayer, the advanced pattern player supports looping of haptic and audio patterns, by setting loopEnabled. The advanced pattern player can also call a block when the player finishes, through its completionHandler property.

Topics

Setting Playback Properties

Controlling Playback

Silencing Haptic Playback

See Also

Essentials