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 bar's appearance.
-
-
Field Summary
Fields Modifier and Type Field Description private StyledTexttitleprivate TopBarModemodeprivate StatusBarModestatusBarModeprivate ScanbotColorbackgroundColorprivate ButtonConfigurationcancelButton
-
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 StyledTextgetTitle()Appearance of the top bar's title. final UnitsetTitle(StyledText title)Appearance of the top bar's title. final TopBarModegetMode()The visual mode used for the top bar. final UnitsetMode(TopBarMode mode)The visual mode used for the top bar. final StatusBarModegetStatusBarMode()The visual mode used for the status bar icons. final UnitsetStatusBarMode(StatusBarMode statusBarMode)The visual mode used for the status bar icons. final ScanbotColorgetBackgroundColor()The background color of the top bar to be used when the visual mode is specified as SOLID. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the top bar to be used when the visual mode is specified as SOLID. final ButtonConfigurationgetCancelButton()Configuration of the 'cancel' button's appearance. final UnitsetCancelButton(ButtonConfiguration cancelButton)Configuration of the 'cancel' button's appearance. final JSONObjecttoJson(ToJsonConfiguration config)final TopBarConfigurationclone()final static TopBarConfigurationdefault()-
-
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()
The visual mode used for the top bar.
Default is SOLID
-
setMode
final Unit setMode(TopBarMode mode)
The visual mode used for the top bar.
Default is SOLID
-
getStatusBarMode
final StatusBarMode getStatusBarMode()
The visual mode used for the status bar icons.
Default is LIGHT
-
setStatusBarMode
final Unit setStatusBarMode(StatusBarMode statusBarMode)
The visual mode used for the status bar icons.
Default is LIGHT
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The 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)
The 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(ToJsonConfiguration config)
-
clone
final TopBarConfiguration clone()
-
default
final static TopBarConfiguration default()
-
-
-
-