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 Boolean
successBeepEnabled
private SoundType
soundType
-
Method Summary
Modifier and Type Method Description final Boolean
getSuccessBeepEnabled()
Determine whether the beep sound should be enabled or not when a barcode is detected. final Unit
setSuccessBeepEnabled(Boolean successBeepEnabled)
Determine whether the beep sound should be enabled or not when a barcode is detected. final SoundType
getSoundType()
Determines the successful detection sound. final Unit
setSoundType(SoundType soundType)
Determines the successful detection sound. final JSONObject
toJson(ToJsonConfiguration config)
final Sound
clone()
final static Sound
default()
-
-
-
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)
-
-