Contents

sustained

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

Declaration

static let sustained: CHHapticEvent.ParameterID

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.

[Image]

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