A struct representing an error in the haptics process.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- Xcode 11.0+
Framework
- Core Haptics
Declaration
struct CHHapticError
A struct representing an error in the haptics process.
SDKs
Framework
struct CHHapticError
var error Code: Int
An integral error code.
var error User Info: [String : Any]
User information about the error.
var localized Description: String
A localized description of the error.
static func != (CHHaptic Error, CHHaptic Error) -> Bool
Returns a Boolean value indicating whether two values are not equal.
let Core Haptics Error Domain: String
A string representation of the haptic error domain.
static var error Domain: String
A static string representation of the error domain.
enum CHHaptic Error .Code
Haptic error codes.
static var engine Not Running: CHHaptic Error .Code
The haptic engine wasn't running when your app requested pattern playback.
static var engine Start Timeout: CHHaptic Error .Code
The haptic engine timed out while starting.
static var invalid Event Type: CHHaptic Error .Code
Your app entered an invalid CHHaptic
.
static var invalid Parameter Type: CHHaptic Error .Code
Your app entered an invalid CHHapticParameterID or CHHaptic
.
static var invalid Pattern Data: CHHaptic Error .Code
Your app fed an invalid pattern to the haptic engine or player.
static var invalid Pattern Player: CHHaptic Error .Code
The current pattern player is no longer valid due to a server error.
static var invalid Audio Session: CHHaptic Error .Code
The current pattern player is associated with an invalid audio session.
static var memory Error: CHHaptic Error .Code
The operation failed due to a lack of memory.
static var not Supported: CHHaptic Error .Code
The current device doesn't support the haptic engine.
static var operation Not Permitted: CHHaptic Error .Code
Your app requested an operation that the haptic engine disallows.
static var server Init Failed: CHHaptic Error .Code
The haptic server failed to initialize.
static var server Interrupted: CHHaptic Error .Code
Your app lost its connection to the haptic server.
static var bad Event Entry: CHHaptic Error .Code
The event described in the dictionary is missing a required field.
static var bad Parameter Entry: CHHaptic Error .Code
A parameter in an event is missing a required field.
static var invalid Audio Resource: CHHaptic Error .Code
The audio resource linked in the entry is invalid.
static var resource Not Available: CHHaptic Error .Code
Core Haptics couldn't locate the named resource.
static var invalid Event Duration: CHHaptic Error .Code
The event described in the dictionary has an invalid duration.
static var invalid Event Time: CHHaptic Error .Code
The event time described in the dictionary is invalid.
static var invalid Time: CHHaptic Error .Code
The time offset passed to Core Haptics is invalid.
static var invalid Pattern Dictionary: CHHaptic Error .Code
A pattern in the dictionary is missing a required field.
static var unknown Error: CHHaptic Error .Code
Core Haptics couldn't determine the source of error.
enum CHHaptic Error .Code
Haptic error codes.
let Core Haptics Error Domain: String
A string representation of the haptic error domain.