---
title: sustained
framework: corehaptics
role: symbol
role_heading: Type Property
path: corehaptics/chhapticevent/parameterid/sustained
---

# sustained

A Boolean value that indicates whether to sustain a haptic event for its specified duration.

## Declaration

```swift
static let sustained: CHHapticEvent.ParameterID
```

## Discussion

Discussion This parameter is an event parameter. It determines whether or not the haptic continues playing at full strength after attack has finished, and before decay begins.

If true, the engine sustains the haptic pattern throughout its specified duration, increasing only during its attackTime, and decreasing only after its decayTime. If false, the haptic doesn’t stay at full strength between attack and decay, tailing off even before its decay has begun.

## See Also

### Haptic Event Parameter IDs

- [hapticIntensity](corehaptics/chhapticevent/parameterid/hapticintensity.md)
- [hapticSharpness](corehaptics/chhapticevent/parameterid/hapticsharpness.md)
- [attackTime](corehaptics/chhapticevent/parameterid/attacktime.md)
- [decayTime](corehaptics/chhapticevent/parameterid/decaytime.md)
- [releaseTime](corehaptics/chhapticevent/parameterid/releasetime.md)
