Package io.scanbot.sdk.ui_v2.common
Class TopBarConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TopBarConfiguration implements Parcelable
Configuration of the top screen bar's appearance.
-
-
Field Summary
Fields Modifier and Type Field Description private StyledText
title
private TopBarMode
mode
private StatusBarMode
statusBarMode
private ScanbotColor
backgroundColor
private ButtonConfiguration
cancelButton
-
Constructor Summary
Constructors Constructor Description TopBarConfiguration(Map<String, Object> source)
TopBarConfiguration(JSONObject json)
TopBarConfiguration(StyledText title, TopBarMode mode, StatusBarMode statusBarMode, ScanbotColor backgroundColor, ButtonConfiguration cancelButton)
-
Method Summary
Modifier and Type Method Description final StyledText
getTitle()
Appearance of the top bar's title. final Unit
setTitle(StyledText title)
Appearance of the top bar's title. final TopBarMode
getMode()
Visual mode used for the top bar. final Unit
setMode(TopBarMode mode)
Visual mode used for the top bar. final StatusBarMode
getStatusBarMode()
Visual mode used for the status bar icons. final Unit
setStatusBarMode(StatusBarMode statusBarMode)
Visual mode used for the status bar icons. final ScanbotColor
getBackgroundColor()
Background color of the top bar to be used when the visual mode is specified as SOLID. final Unit
setBackgroundColor(ScanbotColor backgroundColor)
Background color of the top bar to be used when the visual mode is specified as SOLID. final ButtonConfiguration
getCancelButton()
Configuration of the cancel button's appearance. final Unit
setCancelButton(ButtonConfiguration cancelButton)
Configuration of the cancel button's appearance. final JSONObject
toJson()
final static TopBarConfiguration
default()
-
-
Constructor Detail
-
TopBarConfiguration
TopBarConfiguration(JSONObject json)
-
TopBarConfiguration
TopBarConfiguration(StyledText title, TopBarMode mode, StatusBarMode statusBarMode, ScanbotColor backgroundColor, ButtonConfiguration cancelButton)
-
-
Method Detail
-
getTitle
final StyledText getTitle()
Appearance of the top bar's title.
-
setTitle
final Unit setTitle(StyledText title)
Appearance of the top bar's title.
-
getMode
final TopBarMode getMode()
Visual mode used for the top bar. Default is SOLID
-
setMode
final Unit setMode(TopBarMode mode)
Visual mode used for the top bar. Default is SOLID
-
getStatusBarMode
final StatusBarMode getStatusBarMode()
Visual mode used for the status bar icons. Default is LIGHT
-
setStatusBarMode
final Unit setStatusBarMode(StatusBarMode statusBarMode)
Visual mode used for the status bar icons. Default is LIGHT
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
Background color of the top bar to be used when the visual mode is specified as SOLID. Otherwise ignored. Default is "?sbColorPrimary"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
Background color of the top bar to be used when the visual mode is specified as SOLID. Otherwise ignored. Default is "?sbColorPrimary"
-
getCancelButton
final ButtonConfiguration getCancelButton()
Configuration of the cancel button's appearance.
-
setCancelButton
final Unit setCancelButton(ButtonConfiguration cancelButton)
Configuration of the cancel button's appearance.
-
toJson
final JSONObject toJson()
-
default
final static TopBarConfiguration default()
-
-
-
-