android-components / mozilla.components.feature.qr / QrFeature / scan

scan

fun scan(containerViewId: Int = android.R.id.content): Boolean (source)

Starts the QR scanner fragment and listens for scan results.

Parameters

containerViewId - optional id of the container this fragment is to be placed in, defaults to android.R.id.content.

Return true if the scanner was started or false if permissions still need to be requested.