core_haptics 0.0.6 copy "core_haptics: ^0.0.6" to clipboard
core_haptics: ^0.0.6 copied to clipboard

Type-safe Core Haptics FFI plugin via SwiftPM with automatic fallback to Flutter's `HapticFeedback`.

0.0.6 #

  • Cross-platform support.
    • On iOS/macOS: Uses native Core Haptics via FFI
    • On Android/Windows/Linux/Web: Falls back to Flutter's HapticFeedback
  • Added supportsAdvancedHaptics property to check if full Core Haptics API is available.
  • Advanced features (HapticEngine.create(), patterns, players) now throw HapticsException(notSupported) on non-Apple platforms with a helpful message.
  • Updated documentation with platform support matrix.

0.0.5 #

  • Update documentation with Swift Package Manager setup instructions.

0.0.4 #

  • Remove library core_haptics directive.

0.0.3 #

  • Static methods now auto-check isSupported and silently no-op on unsupported devices.
  • No need to wrap one-liner calls in isSupported checks anymore.

0.0.2 #

  • Improve documentation.

0.0.1 #

  • Initial release with basic Core Haptics API.
13
likes
160
points
364
downloads

Publisher

verified publisherfrancescocoppola.me

Weekly Downloads

Type-safe Core Haptics FFI plugin via SwiftPM with automatic fallback to Flutter's `HapticFeedback`.

Repository (GitHub)
View/report issues

Topics

#haptics #vibration #ahap #core-haptics #ffi

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, flutter

More

Packages that depend on core_haptics

Packages that implement core_haptics