SparkScan Barcode Feedback
Defined in package com.scandit.datacapture.barcode.spark.feedback
- SparkScanBarcodeFeedback
abstract class SparkScanBarcodeFeedback
Added in version 6.23.0
Used to emit feedback when capturing barcodes.
- toJson()
@NonNull String toJson()
Added in version 6.23.0
Returns string representation of this object.
- defaultSuccessFeedback()
static @NonNull Feedback defaultSuccessFeedback()
Added in version 6.23.0
The default success feedback object.
- defaultErrorFeedback()
static @NonNull Feedback defaultErrorFeedback()
Added in version 6.23.0
The default error feedback object.
- fromJson(json)
static @NonNull SparkScanBarcodeFeedback fromJson(@NonNull String json)
Added in version 6.23.0
Construct a new spark scan barcode feedback with the provided JSON serialization.
- Error
class Error : SparkScanBarcodeFeedback
Added in version 6.23.0
Used to display and emit an error feedback when capturing barcodes.
- Error()
Error(@NonNull String message, @NonNull TimeInterval resumeCapturingDelay)
Added in version 6.23.0
Constructs an error feedback.
- Error()
Error(@NonNull String message, @NonNull TimeInterval resumeCapturingDelay,
int
visualFeedbackColor)Added in version 6.23.0
Constructs an error feedback.
- Error()
Error(@NonNull String message, @NonNull TimeInterval resumeCapturingDelay,
int
visualFeedbackColor, @NonNull Brush brush)Added in version 6.23.0
Constructs an error feedback.
- Error()
Error(@NonNull String message, @NonNull TimeInterval resumeCapturingDelay,
int
visualFeedbackColor, @NonNull Brush brush, @Nullable Feedback feedback)Added in version 6.23.0
Constructs an error feedback.
- message
@NonNull String getMessage()
Added in version 6.23.0
The error message to display when a wrong barcode was captured.
- resumeCapturingDelay
@NonNull TimeInterval getResumeCapturingDelay()
Added in version 6.23.0
The time interval after which to resume the capturing process.
- visualFeedbackColor
int
getVisualFeedbackColor()Added in version 6.23.0
The color of the visual error feedback.
- Success
class Success : SparkScanBarcodeFeedback
Added in version 6.23.0
Used to display and emit a success feedback when capturing barcodes.
- Success()
Success()
Added in version 6.23.0
Constructs a success feedback.
- Success()
Success(
int
visualFeedbackColor)Added in version 6.23.0
Constructs a success feedback.
- Success()
Success(
int
visualFeedbackColor, @NonNull Brush brush)Added in version 6.23.0
Constructs a success feedback.
- Success()
Success(
int
visualFeedbackColor, @NonNull Brush brush, @Nullable Feedback feedback)Added in version 6.23.0
Constructs a success feedback.
- visualFeedbackColor
int
getVisualFeedbackColor()Added in version 6.23.0
The color of the visual success feedback.