jgrandchavin / lofelt

Unlock the Power of Haptics in Mobile Devices on Flutter

Home Page:https://lofelt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ“ณ Lofelt

test image size

๐Ÿ”— Official Lofelt website

๐Ÿ”— Lofelt SDK Repository

Unlock the Power of Haptics in Mobile Devices on Flutter

Lofelt builds state-of-the-art haptic technologies for iOS and Android developers and creatives.

โš ๏ธ Disclaimer

๐Ÿ–ฅ This package is NOT developed by Lofelt.

๐Ÿ The haptics works only for iOS for the moment

โ› Getting started

๐ŸŽ™ Haptic files

You can download a free to use libary of .haptic files from Lofelt's website.

To create your own custom .haptic file from sound, download Lofelt Studio and see Lofelt Studio documentation

๐Ÿ’ผ Add .haptic files in your pubspec.yaml

Example:

 assets:
    - assets/haptics/

โšก๏ธ Init Lofelt in a Widget

 await Lofelt.init();

โž•๏ธ Load a .haptic file in Lofelt

  await Lofelt.load('assets/haptics/test.haptic');

โ–ถ๏ธ Play the file !

  await Lofelt.play();

โน Stop

  await Lofelt.stop();

To see Lofelt integration with sound, see example

๐Ÿ—บ RoadMap

Feature Status
Play .haptic on iOS ๐Ÿ โœ…
Play .haptic on Android ๐Ÿค– โŒ

About

Unlock the Power of Haptics in Mobile Devices on Flutter

https://lofelt.com

License:MIT License


Languages

Language:Objective-C 60.0%Language:Swift 15.0%Language:Dart 12.2%Language:Ruby 7.5%Language:Kotlin 5.3%