A protocol that defines a standard pattern player capable of playing haptic patterns with fixed parameters.
- iOS 13.0+
- Mac Catalyst 13.0+
- Core Haptics
Create instances of a pattern player through a
CHHaptic object by calling a factory method such as
create. 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,
CHHaptic, 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.