Class SwipeToDelete
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SwipeToDelete implements Parcelable
Configuration of the swipe-to-delete button.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
enabled
private ScanbotColor
backgroundColor
private ScanbotColor
iconColor
-
Constructor Summary
Constructors Constructor Description SwipeToDelete(Map<String, Object> source)
SwipeToDelete(JSONObject json)
SwipeToDelete(Boolean enabled, ScanbotColor backgroundColor, ScanbotColor iconColor)
-
Method Summary
Modifier and Type Method Description final Boolean
getEnabled()
Whether swipe to delete is enabled or not. final Unit
setEnabled(Boolean enabled)
Whether swipe to delete is enabled or not. final ScanbotColor
getBackgroundColor()
Color of the swipe-to-delete button. final Unit
setBackgroundColor(ScanbotColor backgroundColor)
Color of the swipe-to-delete button. final ScanbotColor
getIconColor()
Color of the icon on the swipe-to-delete button. final Unit
setIconColor(ScanbotColor iconColor)
Color of the icon on the swipe-to-delete button. final JSONObject
toJson()
final static SwipeToDelete
default()
-
-
Constructor Detail
-
SwipeToDelete
SwipeToDelete(JSONObject json)
-
SwipeToDelete
SwipeToDelete(Boolean enabled, ScanbotColor backgroundColor, ScanbotColor iconColor)
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Whether swipe to delete is enabled or not. Default is true
-
setEnabled
final Unit setEnabled(Boolean enabled)
Whether swipe to delete is enabled or not. Default is true
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
Color of the swipe-to-delete button. Default is "?sbColorNegative"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
Color of the swipe-to-delete button. Default is "?sbColorNegative"
-
getIconColor
final ScanbotColor getIconColor()
Color of the icon on the swipe-to-delete button. Default is "?sbColorOnPrimary"
-
setIconColor
final Unit setIconColor(ScanbotColor iconColor)
Color of the icon on the swipe-to-delete button. Default is "?sbColorOnPrimary"
-
toJson
final JSONObject toJson()
-
default
final static SwipeToDelete default()
-
-
-
-