core_haptics library

Classes

AhapPattern
Raw AHAP data wrapper.
CoreHapticsPlugin
Dart-only plugin registrant placeholder.
HapticEngine
Manages the Core Haptics engine lifecycle and pattern loading.
HapticEvent
A single haptic event (transient or continuous) used to build patterns.
HapticPattern
A Core Haptics pattern loaded from AHAP or programmatic events.
HapticPlayer
Controls playback of a single haptic pattern.
HapticServiceBase
Abstract interface for platform-specific haptic feedback implementations.
HapticServiceFactory
Factory for creating the appropriate haptic service based on platform.

Enums

HapticEngineEvent
Engine lifecycle events surfaced from Core Haptics.
HapticEventType
Event type: one-shot tap or continuous haptic.
HapticParameterId
Supported dynamic parameter identifiers.
HapticsErrorCode
Stable error codes returned by the native Core Haptics bridge.

Typedefs

HapticEngineEventHandler = void Function(HapticEngineEvent event, String? message)
Callback for engine lifecycle events and interruptions.

Exceptions / Errors

HapticsException
Exception thrown for Core Haptics failures.