---
title: "attributes(forEventParameter:eventType:)"
framework: corehaptics
role: symbol
role_heading: Instance Method
path: "corehaptics/chhapticdevicecapability/attributes(foreventparameter:eventtype:)"
---

# attributes(forEventParameter:eventType:)

Returns the haptic device’s attributes for an event parameter.

## Declaration

```swift
func attributes(forEventParameter inParameter: CHHapticEvent.ParameterID, eventType type: CHHapticEvent.EventType) throws -> any CHHapticParameterAttributes
```

## Parameters

- `inParameter`: The event parameter ID whose attributes you seek.
- `type`: A haptic event type to query.

## Return Value

Return Value The haptic device’s attributes for the given event parameter ID.

## See Also

### Determining Supported Parameters

- [attributes(forDynamicParameter:)](corehaptics/chhapticdevicecapability/attributes(fordynamicparameter:).md)
