Package io.scanbot.sdk.ui_v2.common
Class Vibration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Vibration implements Parcelable
Configure the vibration.
-
-
Method Summary
Modifier and Type Method Description final Boolean
getEnabled()
Determine whether vibration should be enabled or not when a barcode is detected. final Unit
setEnabled(Boolean enabled)
Determine whether vibration should be enabled or not when a barcode is detected. final JSONObject
toJson(ToJsonConfiguration config)
final Vibration
clone()
final static Vibration
default()
-
-
-
Constructor Detail
-
Vibration
Vibration(JSONObject json)
-
Vibration
Vibration(Boolean enabled)
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Determine whether vibration should be enabled or not when a barcode is detected.
Default is false
-
setEnabled
final Unit setEnabled(Boolean enabled)
Determine whether vibration should be enabled or not when a barcode is detected.
Default is false
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
-