Contents

CHHapticPatternPlayer

A protocol that defines a standard pattern player capable of playing haptic patterns with fixed parameters.

Declaration

protocol CHHapticPatternPlayer : NSObjectProtocol

Mentioned in

Overview

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

Use the advanced pattern player, CHHapticAdvancedPatternPlayer, when your haptic pattern needs to change during playback, or when you’d like to sync your haptic with a custom audio track. The advanced player allows your app to dynamically change haptic characteristics such as intensity and sharpness through dynamic parameters and parameter curves, capabilities not found in the standard player.

Topics

Starting and Stopping Playback

Sending Parameters to a Haptic

Silencing Haptic Playback

See Also

Essentials