public final class WifiResultHandler extends ResultHandler
MAX_BUTTON_COUNT
Constructor and Description |
---|
WifiResultHandler(CaptureActivity activity,
ParsedResult result) |
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.
|
java.lang.CharSequence |
getDisplayContents()
Create a possibly styled string for the contents of the current barcode.
|
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, getResult, getType
public WifiResultHandler(CaptureActivity 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 java.lang.CharSequence getDisplayContents()
ResultHandler
getDisplayContents
in class ResultHandler
public int getDisplayTitle()
ResultHandler
getDisplayTitle
in class ResultHandler