public final class ProductResultHandler extends ResultHandler
MAX_BUTTON_COUNT
Constructor and Description |
---|
ProductResultHandler(android.app.Activity activity,
ParsedResult result,
Result rawResult) |
Modifier and Type | Method and Description |
---|---|
int |
getButtonCount()
Indicates how many buttons the derived class wants shown.
|
int |
getButtonText(int index)
The text of the nth action button.
|
int |
getDisplayTitle()
A string describing the kind of barcode that was found, e.g.
|
void |
handleButtonPress(int index)
Execute the action which corresponds to the nth button.
|
areContentsSecure, getDisplayContents, getResult, getType
public ProductResultHandler(android.app.Activity activity, ParsedResult result, Result rawResult)
public int getButtonCount()
ResultHandler
getButtonCount
in class ResultHandler
public int getButtonText(int index)
ResultHandler
getButtonText
in class ResultHandler
index
- From 0 to getButtonCount() - 1public void handleButtonPress(int index)
ResultHandler
handleButtonPress
in class ResultHandler
index
- The button that was clicked.public int getDisplayTitle()
ResultHandler
getDisplayTitle
in class ResultHandler