Protocol

CHHapticParameterAttributes

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

Declaration

protocol CHHapticParameterAttributes

Topics

Providing Parameter Values

var defaultValue: Float

The default value of the parameter value.

Required.

var minValue: Float

The minimum value the parameter can take.

Required.

var maxValue: Float

The maximum value the parameter can take.

Required.

Relationships

Inherits From

See Also

Querying System Capabilities

class func capabilitiesForHardware() -> CHHapticDeviceCapability

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

protocol CHHapticDeviceCapability

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

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

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

Required.