Initializer

init(dictionary:)

Creates a haptic pattern from a property list dictionary.

Declaration

init(dictionary patternDict: [CHHapticPattern.Key : Any]) throws

Parameters

patternDict

A dictionary that defines the haptic pattern and its parameters.

outError

Any error that occurs during haptic pattern initialization. If no error occurs, this value is nil.

See Also

Creating a Haptic Pattern

init(events: [CHHapticEvent], parameterCurves: [CHHapticParameterCurve])

Constructs a haptic pattern from a series of events and parameter curves.

init(events: [CHHapticEvent], parameters: [CHHapticDynamicParameter])

Constructs a haptic pattern from a series of events and parameters.

struct CHHapticPattern.Key

The structural representation of a key to the pattern dictionary.