Contents

attackTime

The time at which a haptic pattern’s intensity begins increasing.

Declaration

static let attackTime: CHHapticEvent.ParameterID

Discussion

This parameter can be an event parameter or a dynamic parameter. An event parameter indicates that the haptic begins increasing in intensity at the set time, where time 0 indicates now, or the current time.

A dynamic value indicates that the time at which ramp-up begins can change. For example, a value of 0 indicates that the attack time is at its default value. Positive values up to 1.0 increase the attack time exponentially, while negative values down to -1.0 decrease the attack time exponentially. Haptic intensity responds to this parameter.

[Image]

See Also

Haptic Event Parameter IDs