core_haptics 0.0.6
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
supportsAdvancedHapticsproperty to check if full Core Haptics API is available. - Advanced features (
HapticEngine.create(), patterns, players) now throwHapticsException(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_hapticsdirective.
0.0.3 #
- Static methods now auto-check
isSupportedand silently no-op on unsupported devices. - No need to wrap one-liner calls in
isSupportedchecks anymore.
0.0.2 #
- Improve documentation.
0.0.1 #
- Initial release with basic Core Haptics API.