SwipeToDelete

data class SwipeToDelete(var enabled: Boolean = true, var backgroundColor: ScanbotColor = ScanbotColor("?sbColorNegative", isArgb = false), var iconColor: ScanbotColor = ScanbotColor("?sbColorOnPrimary", isArgb = false))

Configuration of the swipe-to-delete button.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(enabled: Boolean = true, backgroundColor: ScanbotColor = ScanbotColor("?sbColorNegative", isArgb = false), iconColor: ScanbotColor = ScanbotColor("?sbColorOnPrimary", isArgb = false))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Color of the swipe-to-delete button. Default is "?sbColorNegative"

Link copied to clipboard

Whether swipe to delete is enabled or not. Default is true

Link copied to clipboard

Color of the icon on the swipe-to-delete button. Default is "?sbColorOnPrimary"

Functions

Link copied to clipboard
fun toJson(): JsonObject