Package io.anyline2.viewplugin
Class ScanFeedbackConfig
- java.lang.Object
-
- io.anyline2.viewplugin.ScanFeedbackConfig
-
public class ScanFeedbackConfig extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScanFeedbackConfig.FeedbackAnimationStyle
static class
ScanFeedbackConfig.ScanFeedbackStyle
-
Field Summary
Fields Modifier and Type Field Description int
animationDuration
ScanFeedbackConfig.FeedbackAnimationStyle
animationStyle
boolean
beepOnResult
boolean
blinkAnimationOnResult
int
cornerRadius
ScanFeedbackConfig.ScanFeedbackStyle
feedbackStyle
java.lang.String
fillColor
int
redrawTimeout
java.lang.String
strokeColor
int
strokeWidth
boolean
vibrateOnResult
-
Constructor Summary
Constructors Constructor Description ScanFeedbackConfig()
ScanFeedbackConfig(org.json.JSONObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAnimationStyle()
ScanFeedbackConfig.FeedbackAnimationStyle
getAnimationStyle(java.lang.String style)
int
getCornerRadiusInPix(android.content.Context context)
java.lang.String
getScanFeedbackStyle()
ScanFeedbackConfig.ScanFeedbackStyle
getScanFeedbackStyle(java.lang.String style)
int
getStrokeWidthInPix(android.content.Context context)
-
-
-
Field Detail
-
feedbackStyle
public ScanFeedbackConfig.ScanFeedbackStyle feedbackStyle
-
strokeColor
public java.lang.String strokeColor
-
fillColor
public java.lang.String fillColor
-
strokeWidth
public int strokeWidth
-
cornerRadius
public int cornerRadius
-
redrawTimeout
public int redrawTimeout
-
animationDuration
public int animationDuration
-
animationStyle
public ScanFeedbackConfig.FeedbackAnimationStyle animationStyle
-
blinkAnimationOnResult
public boolean blinkAnimationOnResult
-
beepOnResult
public boolean beepOnResult
-
vibrateOnResult
public boolean vibrateOnResult
-
-
Method Detail
-
getScanFeedbackStyle
public java.lang.String getScanFeedbackStyle()
-
getScanFeedbackStyle
public ScanFeedbackConfig.ScanFeedbackStyle getScanFeedbackStyle(java.lang.String style)
-
getAnimationStyle
public java.lang.String getAnimationStyle()
-
getAnimationStyle
public ScanFeedbackConfig.FeedbackAnimationStyle getAnimationStyle(java.lang.String style)
-
getCornerRadiusInPix
public int getCornerRadiusInPix(android.content.Context context)
-
getStrokeWidthInPix
public int getStrokeWidthInPix(android.content.Context context)
-
-