Initializer

init(parameterID:value:)

Creates a haptic event parameter from its ID and value.

Declaration

init(parameterID: CHHapticEvent.ParameterID, value: Float)

Parameters

parameterID

The ID indicating the type of the event parameter.

value

The value of the event parameter.

See Also

Creating an Event Parameter

struct CHHapticEvent.ParameterID

An identifier that indicates the event parameter being defined.