public final class URIResultHandler extends ResultHandler
MAX_BUTTON_COUNT
Constructor and Description |
---|
URIResultHandler(android.app.Activity activity,
ParsedResult result) |
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.
|
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.
|
getDisplayContents, getResult, getType
public URIResultHandler(android.app.Activity activity, ParsedResult result)
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
public boolean areContentsSecure()
ResultHandler
areContentsSecure
in class ResultHandler