Package io.scanbot.sdk.ui_v2.common
Class ActionBarConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ActionBarConfiguration implements Parcelable
Configuration of the buttons available in the action bar.
-
-
Field Summary
Fields Modifier and Type Field Description private RoundButton
flashButton
private RoundButton
zoomButton
private RoundButton
flipCameraButton
-
Constructor Summary
Constructors Constructor Description ActionBarConfiguration(Map<String, Object> source)
ActionBarConfiguration(JSONObject json)
ActionBarConfiguration(RoundButton flashButton, RoundButton zoomButton, RoundButton flipCameraButton)
-
Method Summary
Modifier and Type Method Description final RoundButton
getFlashButton()
Configuration of the 'flash' button. final Unit
setFlashButton(RoundButton flashButton)
Configuration of the 'flash' button. final RoundButton
getZoomButton()
Configuration of the 'zoom' button. final Unit
setZoomButton(RoundButton zoomButton)
Configuration of the 'zoom' button. final RoundButton
getFlipCameraButton()
Configuration of the 'flip camera' button. final Unit
setFlipCameraButton(RoundButton flipCameraButton)
Configuration of the 'flip camera' button. final JSONObject
toJson()
final static ActionBarConfiguration
default()
-
-
Constructor Detail
-
ActionBarConfiguration
ActionBarConfiguration(JSONObject json)
-
ActionBarConfiguration
ActionBarConfiguration(RoundButton flashButton, RoundButton zoomButton, RoundButton flipCameraButton)
-
-
Method Detail
-
getFlashButton
final RoundButton getFlashButton()
Configuration of the 'flash' button.
-
setFlashButton
final Unit setFlashButton(RoundButton flashButton)
Configuration of the 'flash' button.
-
getZoomButton
final RoundButton getZoomButton()
Configuration of the 'zoom' button.
-
setZoomButton
final Unit setZoomButton(RoundButton zoomButton)
Configuration of the 'zoom' button.
-
getFlipCameraButton
final RoundButton getFlipCameraButton()
Configuration of the 'flip camera' button.
-
setFlipCameraButton
final Unit setFlipCameraButton(RoundButton flipCameraButton)
Configuration of the 'flip camera' button.
-
toJson
final JSONObject toJson()
-
default
final static ActionBarConfiguration default()
-
-
-
-