Scans a QR code with the camera (issue #325, K12): the scanner of the library asks for the camera permission when it opens.
More...
|
| static void | scan (Context context, final Consumer< String > onText) |
| |
Scans a QR code with the camera (issue #325, K12): the scanner of the library asks for the camera permission when it opens.
The result comes back through the activity's registry, which is used on the tap, so that no field has to exist before the activity starts. Nothing happens without an activity that can take a result.
◆ scan()
| static void de.yaacc.sendspin.QrScan.scan |
( |
Context | context, |
|
|
final Consumer< String > | onText ) |
|
static |
- Parameters
-
| onText | called on the main thread with the text of the code; not called if the scan was cancelled |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/QrScan.java