Protocol

CHHapticDeviceCapability

A protocol that defines haptics and audio capabilities of a device.

Declaration

protocol CHHapticDeviceCapability

Topics

Determining Support for Haptics

var supportsAudio: Bool

A Boolean value that indicates whether the device supports audio event playback.

Required.

var supportsHaptics: Bool

A Boolean value that indicates whether the device supports haptic event playback.

Required.

Determining Supported Parameters

See Also

Querying System Capabilities

class func capabilitiesForHardware() -> CHHapticDeviceCapability

Returns a device capability object that specifies the device's haptic support and limitations.

protocol CHHapticParameterAttributes

A protocol for providing default, mininum, and maximum values of a parameter.

func attributes(forDynamicParameter: CHHapticDynamicParameter.ID) -> CHHapticParameterAttributes

Requests the haptic device's attributes for a dynamic parameter.

Required.