Class CameraPermissionScreen
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CameraPermissionScreen implements Parcelable
Configuration of the camera permission request view.
-
-
Field Summary
Fields Modifier and Type Field Description private StatusBarMode
statusBarMode
private ScanbotColor
background
private ScanbotColor
iconBackground
private IconStyle
icon
private ButtonConfiguration
enableCameraButton
private ButtonConfiguration
closeButton
private StyledText
enableCameraTitle
private StyledText
enableCameraExplanation
-
Constructor Summary
Constructors Constructor Description CameraPermissionScreen(Map<String, Object> source)
CameraPermissionScreen(JSONObject json)
CameraPermissionScreen(StatusBarMode statusBarMode, ScanbotColor background, ScanbotColor iconBackground, IconStyle icon, ButtonConfiguration enableCameraButton, ButtonConfiguration closeButton, StyledText enableCameraTitle, StyledText enableCameraExplanation)
-
Method Summary
Modifier and Type Method Description final StatusBarMode
getStatusBarMode()
Visual mode for displaying the contents of the status bar. final Unit
setStatusBarMode(StatusBarMode statusBarMode)
Visual mode for displaying the contents of the status bar. final ScanbotColor
getBackground()
Background color of the camera permission request. final Unit
setBackground(ScanbotColor background)
Background color of the camera permission request. final ScanbotColor
getIconBackground()
Background color of the icon used in the camera permission request. final Unit
setIconBackground(ScanbotColor iconBackground)
Background color of the icon used in the camera permission request. final IconStyle
getIcon()
Configuration of the icon used in the camera permission request. final Unit
setIcon(IconStyle icon)
Configuration of the icon used in the camera permission request. final ButtonConfiguration
getEnableCameraButton()
Configuration of the camera permission request's confirmation button. final Unit
setEnableCameraButton(ButtonConfiguration enableCameraButton)
Configuration of the camera permission request's confirmation button. final ButtonConfiguration
getCloseButton()
Configuration of the camera permission request's close button. final Unit
setCloseButton(ButtonConfiguration closeButton)
Configuration of the camera permission request's close button. final StyledText
getEnableCameraTitle()
Configuration of the camera permission request's title. final Unit
setEnableCameraTitle(StyledText enableCameraTitle)
Configuration of the camera permission request's title. final StyledText
getEnableCameraExplanation()
Configuration of the camera permission request's explanatory text. final Unit
setEnableCameraExplanation(StyledText enableCameraExplanation)
Configuration of the camera permission request's explanatory text. final JSONObject
toJson()
final static CameraPermissionScreen
default()
-
-
Constructor Detail
-
CameraPermissionScreen
CameraPermissionScreen(JSONObject json)
-
CameraPermissionScreen
CameraPermissionScreen(StatusBarMode statusBarMode, ScanbotColor background, ScanbotColor iconBackground, IconStyle icon, ButtonConfiguration enableCameraButton, ButtonConfiguration closeButton, StyledText enableCameraTitle, StyledText enableCameraExplanation)
-
-
Method Detail
-
getStatusBarMode
final StatusBarMode getStatusBarMode()
Visual mode for displaying the contents of the status bar. Default is DARK
-
setStatusBarMode
final Unit setStatusBarMode(StatusBarMode statusBarMode)
Visual mode for displaying the contents of the status bar. Default is DARK
-
getBackground
final ScanbotColor getBackground()
Background color of the camera permission request. Default is "?sbColorSurface"
-
setBackground
final Unit setBackground(ScanbotColor background)
Background color of the camera permission request. Default is "?sbColorSurface"
-
getIconBackground
final ScanbotColor getIconBackground()
Background color of the icon used in the camera permission request. Default is "?sbColorOutline"
-
setIconBackground
final Unit setIconBackground(ScanbotColor iconBackground)
Background color of the icon used in the camera permission request. Default is "?sbColorOutline"
-
setIcon
final Unit setIcon(IconStyle icon)
Configuration of the icon used in the camera permission request.
-
getEnableCameraButton
final ButtonConfiguration getEnableCameraButton()
Configuration of the camera permission request's confirmation button.
-
setEnableCameraButton
final Unit setEnableCameraButton(ButtonConfiguration enableCameraButton)
Configuration of the camera permission request's confirmation button.
-
getCloseButton
final ButtonConfiguration getCloseButton()
Configuration of the camera permission request's close button.
-
setCloseButton
final Unit setCloseButton(ButtonConfiguration closeButton)
Configuration of the camera permission request's close button.
-
getEnableCameraTitle
final StyledText getEnableCameraTitle()
Configuration of the camera permission request's title.
-
setEnableCameraTitle
final Unit setEnableCameraTitle(StyledText enableCameraTitle)
Configuration of the camera permission request's title.
-
getEnableCameraExplanation
final StyledText getEnableCameraExplanation()
Configuration of the camera permission request's explanatory text.
-
setEnableCameraExplanation
final Unit setEnableCameraExplanation(StyledText enableCameraExplanation)
Configuration of the camera permission request's explanatory text.
-
toJson
final JSONObject toJson()
-
default
final static CameraPermissionScreen default()
-
-
-
-