Protocol

NSHapticFeedbackPerformer

The NSHapticFeedbackPerformer protocol defines the methods and constants that a haptic feedback performer implements.

Overview

To retrieve a haptic feedback performer object based on the current input device, accessibility settings, and user preferences, call the defaultPerformer() method of the NSHapticFeedbackManager class.

To provide the user with haptic feedback while using a Force Touch trackpad, call the perform(_:performanceTime:) method of this protocol.

Symbols

Performing Haptic Feedback

func perform(NSHapticFeedbackPattern, performanceTime: NSHapticFeedbackPerformanceTime)
Required.

Initiates a specific pattern of haptic feedback to the user.

Constants

NSHapticFeedbackPattern

A pattern of haptic feedback to be provided to the user.

NSHapticFeedbackPerformanceTime

A time at which to provide haptic feedback to the user.

Relationships

Inherits From