<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHaptics",
  "identifier" : "/documentation/CoreHaptics/CHHapticDeviceCapability/attributes(forEventParameter:eventType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Haptics"
    ],
    "preciseIdentifier" : "c:objc(pl)CHHapticDeviceCapability(im)attributesForEventParameter:eventType:error:"
  },
  "title" : "attributes(forEventParameter:eventType:)"
}
-->

# attributes(forEventParameter:eventType:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)