FlutterScanFeedbackPlayer class
The standard ScanFeedbackPlayer for Flutter apps: sound and haptics.
final session = ScanSession(
feedbackPlayer: FlutterScanFeedbackPlayer(sound: MyWavPlayer()),
);
- Implemented types
Constructors
- FlutterScanFeedbackPlayer({ScanSoundPlayer? sound = const SystemScanSoundPlayer(), ScanHaptics? haptics = const FlutterScanHaptics()})
-
Creates a player. Without
sound, SystemScanSoundPlayer is used.const
Properties
- haptics → ScanHaptics?
-
Vibrates;
nullfor none.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sound → ScanSoundPlayer?
-
Plays sounds;
nullfor none.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
play(
ScanFeedbackKind kind, ScanFeedback settings) → void -
Plays the feedback for
kindusing the channels enabled insettings.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited