SwipeToDelete

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

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.

Link copied to clipboard

Whether swipe to delete is enabled or not.

Link copied to clipboard

Color of the icon on the swipe-to-delete button.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject