playHAC method

Future<void> playHAC(
  1. String path
)

Plays a HAC file from the specified path.

For more information on HAC files, see: https://docs.hapticlabs.io/mobile/hacfiles/

path - The file path to the .hac file. Can be an absolute path (starting with /) or a relative path (not starting with /) from the app's assets root.

Returns a Future that completes when the haptic playback has terminated.

Implementation

Future<void> playHAC(String path) {
  return HapticlabsPlayerPlatform.instance.playHAC(path);
}