HapticlabsPlayer class

A cross-platform haptic feedback player for Android and iOS devices.

Available extensions

Constructors

HapticlabsPlayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAndroidConstants() Future<AndroidHapticCapabilities>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Retrieves Android-specific haptic capabilities and constants.
isAudioMuted() Future<bool>

Available on HapticlabsPlayer, provided by the IOSHapticlabsPlayer extension

Checks whether audio playback defined by AHAP files is currently muted.
isHapticsMuted() Future<bool>

Available on HapticlabsPlayer, provided by the IOSHapticlabsPlayer extension

Checks whether haptics defined by AHAP files are currently muted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playAHAP(String path) Future<void>

Available on HapticlabsPlayer, provided by the IOSHapticlabsPlayer extension

Plays an AHAP file from the specified path.
playHAC(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Plays a HAC file from the specified path.
playHaptics({String? androidPath, String? iosPath}) Future<void>
Plays haptic feedback using the provided file paths for Android and iOS.
playHLA(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Plays an HLA file from the specified path.
playOGG(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Plays an OGG file from the specified path.
playPredefinedHaptics({AndroidPredefinedHapticEffect? androidEffect, IOSPredefinedHapticEffect? iosEffect}) Future<void>
Plays predefined haptic effects for Android and iOS devices.
preload(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Preloads a HAC file from the specified path.
preloadOGG(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Preloads an OGG file from the specified path.
setAudioMute(bool mute) Future<void>

Available on HapticlabsPlayer, provided by the IOSHapticlabsPlayer extension

Sets whether audio playback defined by AHAP files should be muted.
setHapticsMute(bool mute) Future<void>

Available on HapticlabsPlayer, provided by the IOSHapticlabsPlayer extension

Sets whether haptics defined by AHAP files should be muted.
toString() String
A string representation of this object.
inherited
unload(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Unloads a previously preloaded HAC file from the specified path.
unloadAll() Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Unloads all previously preloaded HAC and OGG files.
unloadOGG(String path) Future<void>

Available on HapticlabsPlayer, provided by the AndroidHapticlabsPlayer extension

Unloads a previously preloaded OGG file from the specified path.

Operators

operator ==(Object other) bool
The equality operator.
inherited