init(eventType:parameters:relativeTime:)
Initializes a haptic event of the specified type, parameters, and start time.
Declaration
init(eventType type: CHHapticEvent.EventType, parameters eventParams: [CHHapticEventParameter], relativeTime time: TimeInterval)Parameters
- type:
The type of the haptic event: transient or continuous.
- eventParams:
An array of event parameters to characterize the haptic event.
- time:
The start time of the haptic event, in seconds.