YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.QrScan Class Reference

Scans a QR code with the camera (issue #325, K12): the scanner of the library asks for the camera permission when it opens. More...

Collaboration diagram for de.yaacc.sendspin.QrScan:
Collaboration graph

Static Public Member Functions

static void scan (Context context, final Consumer< String > onText)
 

Detailed Description

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.

Member Function Documentation

◆ scan()

static void de.yaacc.sendspin.QrScan.scan ( Context context,
final Consumer< String > onText )
static
Parameters
onTextcalled 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: