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 Booleanenabledprivate ScanbotColorbackgroundColorprivate ScanbotColoriconColor
-
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 BooleangetEnabled()Whether swipe to delete is enabled or not. final UnitsetEnabled(Boolean enabled)Whether swipe to delete is enabled or not. final ScanbotColorgetBackgroundColor()Color of the swipe-to-delete button. final UnitsetBackgroundColor(ScanbotColor backgroundColor)Color of the swipe-to-delete button. final ScanbotColorgetIconColor()Color of the icon on the swipe-to-delete button. final UnitsetIconColor(ScanbotColor iconColor)Color of the icon on the swipe-to-delete button. final JSONObjecttoJson(ToJsonConfiguration config)final SwipeToDeleteclone()final static SwipeToDeletedefault()-
-
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(ToJsonConfiguration config)
-
clone
final SwipeToDelete clone()
-
default
final static SwipeToDelete default()
-
-
-
-