attributes(forEventParameter:eventType:)
Returns the haptic device’s attributes for an event parameter.
Declaration
func attributes(forEventParameter inParameter: CHHapticEvent.ParameterID, eventType type: CHHapticEvent.EventType) throws -> any CHHapticParameterAttributesParameters
- inParameter:
The event parameter ID whose attributes you seek.
- type:
A haptic event type to query.
Return Value
The haptic device’s attributes for the given event parameter ID.