Structure

CHHapticEvent.EventType

The types of audio and haptic event waveforms.

Declaration

struct EventType

Topics

Specifying a Type

init(rawValue: String)

Initializes an event type from a raw string value.

Enumerating Haptic Types

static let audioContinuous: CHHapticEvent.EventType

An audio event with a looped waveform of arbitrary length.

static let audioCustom: CHHapticEvent.EventType

An audio event using a waveform that you supply.

static let hapticTransient: CHHapticEvent.EventType

A brief impulse occurring at a specific point in time, like the feedback from toggling a switch.

static let hapticContinuous: CHHapticEvent.EventType

A haptic event with a looped waveform of arbitrary length.

Relationships

See Also

Categorizing Haptic Events

var type: CHHapticEvent.EventType

The type of the haptic event.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software