public abstract class ResultHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BUTTON_COUNT |
Modifier and Type | Method and Description |
---|---|
boolean |
areContentsSecure()
Some barcode contents are considered secure, and should not be saved to history, copied to
the clipboard, or otherwise persisted.
|
abstract int |
getButtonCount()
Indicates how many buttons the derived class wants shown.
|
abstract int |
getButtonText(int index)
The text of the nth action button.
|
java.lang.CharSequence |
getDisplayContents()
Create a possibly styled string for the contents of the current barcode.
|
abstract int |
getDisplayTitle()
A string describing the kind of barcode that was found, e.g.
|
ParsedResult |
getResult() |
ParsedResultType |
getType()
A convenience method to get the parsed type.
|
abstract void |
handleButtonPress(int index)
Execute the action which corresponds to the nth button.
|
public static final int MAX_BUTTON_COUNT
public ParsedResult getResult()
public abstract int getButtonCount()
public abstract int getButtonText(int index)
index
- From 0 to getButtonCount() - 1public abstract void handleButtonPress(int index)
index
- The button that was clicked.public boolean areContentsSecure()
public java.lang.CharSequence getDisplayContents()
public abstract int getDisplayTitle()
public final ParsedResultType getType()