CameraPermissionScreen
data class CameraPermissionScreen(var statusBarMode: StatusBarMode = StatusBarMode.DARK, var background: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), var iconBackground: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var icon: IconStyle = IconStyle( visible = true, color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var enableCameraButton: ButtonConfiguration = ButtonConfiguration( text = "Grant permission", background = BackgroundStyle( strokeColor = ScanbotColor("?sbColorPrimary", isArgb = false), fillColor = ScanbotColor("?sbColorPrimary", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorOnPrimary", isArgb = false), useShadow = false ) ), var closeButton: ButtonConfiguration = ButtonConfiguration( text = "Close", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorPrimary", isArgb = false), useShadow = false ) ), var enableCameraTitle: StyledText = StyledText( text = "Camera permission denied!", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var enableCameraExplanation: StyledText = StyledText( text = "Please allow the usage of the camera to start the scanning process.", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ))
Configuration of the camera permission request view.
Constructors
Link copied to clipboard
constructor(json: JsonObject)
constructor(statusBarMode: StatusBarMode = StatusBarMode.DARK, background: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), iconBackground: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), icon: IconStyle = IconStyle( visible = true, color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), enableCameraButton: ButtonConfiguration = ButtonConfiguration( text = "Grant permission", background = BackgroundStyle( strokeColor = ScanbotColor("?sbColorPrimary", isArgb = false), fillColor = ScanbotColor("?sbColorPrimary", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorOnPrimary", isArgb = false), useShadow = false ) ), closeButton: ButtonConfiguration = ButtonConfiguration( text = "Close", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorPrimary", isArgb = false), useShadow = false ) ), enableCameraTitle: StyledText = StyledText( text = "Camera permission denied!", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), enableCameraExplanation: StyledText = StyledText( text = "Please allow the usage of the camera to start the scanning process.", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ))
Properties
Link copied to clipboard
Background color of the camera permission request. Default is "?sbColorSurface"
Link copied to clipboard
Configuration of the camera permission request's close button.
Link copied to clipboard
Configuration of the camera permission request's confirmation button.
Link copied to clipboard
Configuration of the camera permission request's explanatory text.
Link copied to clipboard
Configuration of the camera permission request's title.
Link copied to clipboard
Background color of the icon used in the camera permission request. Default is "?sbColorOutline"
Link copied to clipboard
Visual mode for displaying the contents of the status bar. Default is DARK