|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.zxing.client.android.result.ResultHandler
com.google.zxing.client.android.result.URIResultHandler
public final class URIResultHandler
Offers appropriate actions for URLS.
Field Summary |
---|
Fields inherited from class com.google.zxing.client.android.result.ResultHandler |
---|
MAX_BUTTON_COUNT |
Constructor Summary | |
---|---|
URIResultHandler(android.app.Activity activity,
ParsedResult result)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.zxing.client.android.result.ResultHandler |
---|
getDisplayContents, getResult, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URIResultHandler(android.app.Activity activity, ParsedResult result)
Method Detail |
---|
public int getButtonCount()
ResultHandler
getButtonCount
in class ResultHandler
public int getButtonText(int index)
ResultHandler
getButtonText
in class ResultHandler
index
- From 0 to getButtonCount() - 1
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |