A set of methods and constants that a haptic feedback performer implements.
SDK
- macOS 10.11+
Framework
- App
Kit
Declaration
protocol NSHapticFeedbackPerformer
Overview
To retrieve a haptic feedback performer object based on the current input device, accessibility settings, and user preferences, call the default
method of the NSHaptic
class.
To provide the user with haptic feedback while using a Force Touch trackpad, call the perform(_:
method of this protocol.
Important
Haptic feedback is intended to be provided in response to a user action, such as aligning one object to another. Do not use it to provide feedback for events that are not user initiated. Excessive or unnecessary haptic feedback could be interpreted by the user as a malfunction and could encourage the user to disable haptic feedback entirely.