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 RoundButtonflashButtonprivate RoundButtonzoomButtonprivate RoundButtonflipCameraButton
-
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 RoundButtongetFlashButton()Configuration of the 'flash' button. final UnitsetFlashButton(RoundButton flashButton)Configuration of the 'flash' button. final RoundButtongetZoomButton()Configuration of the 'zoom' button. final UnitsetZoomButton(RoundButton zoomButton)Configuration of the 'zoom' button. final RoundButtongetFlipCameraButton()Configuration of the 'flip camera' button. final UnitsetFlipCameraButton(RoundButton flipCameraButton)Configuration of the 'flip camera' button. final JSONObjecttoJson(ToJsonConfiguration config)final ActionBarConfigurationclone()final static ActionBarConfigurationdefault()-
-
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(ToJsonConfiguration config)
-
clone
final ActionBarConfiguration clone()
-
default
final static ActionBarConfiguration default()
-
-
-
-