playAHAP method

Future<void> playAHAP(
  1. String path
)

Plays an AHAP file from the specified path.

If the AHAP file references audio files, or other AHAP files, those will automatically be loaded from the same directory as the main AHAP file.

For more information on AHAP files, see: https://docs.hapticlabs.io/mobile/ahapexport/

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

Implementation

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