QrScanner

fun QrScanner(accept: (String) -> Boolean, onResult: (String) -> Unit, onClose: () -> Unit)

Full-screen QR scanner. Asks for the camera only when opened; hands the first decoded text that accept likes to onResult.