Package io.scanbot.sdk.ui_v2.common
Class UserGuidanceConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class UserGuidanceConfiguration implements Parcelable
Configuration of the hint guiding users through the scanning process.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
visible
private StyledText
title
private BackgroundStyle
background
-
Constructor Summary
Constructors Constructor Description UserGuidanceConfiguration(Map<String, Object> source)
UserGuidanceConfiguration(JSONObject json)
UserGuidanceConfiguration(Boolean visible, StyledText title, BackgroundStyle background)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Whether the user guidance is visible. final Unit
setVisible(Boolean visible)
Whether the user guidance is visible. final StyledText
getTitle()
Title of the user guidance. final Unit
setTitle(StyledText title)
Title of the user guidance. final BackgroundStyle
getBackground()
Background style used for the user guidance. final Unit
setBackground(BackgroundStyle background)
Background style used for the user guidance. final JSONObject
toJson()
final static UserGuidanceConfiguration
default()
-
-
Constructor Detail
-
UserGuidanceConfiguration
UserGuidanceConfiguration(JSONObject json)
-
UserGuidanceConfiguration
UserGuidanceConfiguration(Boolean visible, StyledText title, BackgroundStyle background)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Whether the user guidance is visible. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Whether the user guidance is visible. Default is true
-
getTitle
final StyledText getTitle()
Title of the user guidance.
-
setTitle
final Unit setTitle(StyledText title)
Title of the user guidance.
-
getBackground
final BackgroundStyle getBackground()
Background style used for the user guidance.
-
setBackground
final Unit setBackground(BackgroundStyle background)
Background style used for the user guidance.
-
toJson
final JSONObject toJson()
-
default
final static UserGuidanceConfiguration default()
-
-
-
-