Package io.scanbot.sdk.ui_v2.common
Class Sound
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Sound implements Parcelable
Configuration for the sound.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleansuccessBeepEnabledprivate SoundTypesoundType
-
Method Summary
Modifier and Type Method Description final BooleangetSuccessBeepEnabled()Determine whether the beep sound should be enabled or not when a barcode is detected. final UnitsetSuccessBeepEnabled(Boolean successBeepEnabled)Determine whether the beep sound should be enabled or not when a barcode is detected. final SoundTypegetSoundType()Determines the successful detection sound. final UnitsetSoundType(SoundType soundType)Determines the successful detection sound. final JSONObjecttoJson(ToJsonConfiguration config)final Soundclone()final static Sounddefault()-
-
Method Detail
-
getSuccessBeepEnabled
final Boolean getSuccessBeepEnabled()
Determine whether the beep sound should be enabled or not when a barcode is detected.
Default is true
-
setSuccessBeepEnabled
final Unit setSuccessBeepEnabled(Boolean successBeepEnabled)
Determine whether the beep sound should be enabled or not when a barcode is detected.
Default is true
-
getSoundType
final SoundType getSoundType()
Determines the successful detection sound.
Default is MODERN_BEEP
-
setSoundType
final Unit setSoundType(SoundType soundType)
Determines the successful detection sound.
Default is MODERN_BEEP
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
-
-
-