pulsar library
Pulsar — rich haptic feedback for Flutter.
Import this library to access Pulsar, PulsarPresets, PulsarRealtimeComposer, PulsarPatternComposer, and AdaptiveHaptics.
Classes
- AdaptiveHaptics
- Plays platform-adaptive haptic feedback.
- AdaptivePreset
- Platform-adaptive haptic preset supplying separate ios and android configs.
- AdaptivePresetCallback
- An AdaptivePresetConfig that invokes a callback when played.
- AdaptivePresetConfig
- Platform-specific haptic configuration for AdaptiveHaptics.
- AdaptivePresetPattern
- An AdaptivePresetConfig that plays a PatternData pattern.
- ContinuousPattern
- A continuous haptic pattern defined by amplitude and frequency curves.
- DiscretePoint
- A discrete haptic event. time is in milliseconds. amplitude and frequency are 0.0–1.0.
- PatternData
- Full haptic pattern combining a continuous curve and discrete events.
- Pulsar
- Entry point for the Pulsar haptics library.
- PulsarPatternComposer
- Plays pre-defined haptic patterns.
- PulsarPlatform
- Platform interface for the Pulsar haptics plugin.
- PulsarPreset
- Lightweight handle to a named preset, returned by PulsarPresets.getByName.
- PulsarPresets
- Provides access to Pulsar's 200+ built-in haptic presets.
- PulsarRealtimeComposer
- Controls continuous, real-time haptic feedback.
- ValuePoint
- A point in a continuous haptic curve. time is in milliseconds. value is 0.0–1.0.
Enums
- HapticSupport
- Maps to CompatibilityMode on Android and Pulsar's support model on iOS. Ordinal values match the native CompatibilityMode enum order.
- RealtimeComposerStrategy
- Android-only haptic composition strategy. Ordinal values match the Android RealtimeComposerStrategy enum order.