Label Capture Feedback

Defined in package com.scandit.datacapture.label

LabelCaptureFeedback
class LabelCaptureFeedback

Added in version 7.6.0

Determines what feedback (vibration, sound) should be emitted when capturing labels. The feedback is specified for each LabelCapture instance separately and can be changed through the feedback property by either modifying an existing instance of this class, or by assigning a new one.

As of now, this class only allows to configure the feedback that gets emitted when a label is captured successfully, through the success property.

See documentation on the LabelCapture.feedback property for usage samples.

LabelCaptureFeedback()
LabelCaptureFeedback()

Added in version 7.6.0

Construct a new label capture feedback with default configuration.

defaultFeedback()
static @NonNull LabelCaptureFeedback defaultFeedback()

Added in version 7.6.0

Returns a label capture feedback with default configuration:

  • default beep sound is loaded,

  • beeping for the success event is enabled,

  • vibration for the success event is enabled.

fromJson(json)
static @NonNull LabelCaptureFeedback fromJson(@NonNull String json)

Added in version 7.6.0

Construct a new label capture feedback with the provided JSON serialization.

success
@NonNull Feedback getSuccess()
void setSuccess(@NonNull Feedback value)

Added in version 7.6.0

A feedback for a success event.

toJson()
@NonNull String toJson()

Added in version 7.6.0

Returns the JSON representation of the feedback.