Skip to content

How to make it read only QR-Codes?Β #32

@Polyana-F

Description

@Polyana-F

As title says.

When I try to read some damaged QR-Codes, it sometimes reads as barcode and causes confusion and errors, I need to make it read only QR-Codes

QrScanner(
        modifier = Modifier,
        flashlightOn = flashlightOn,
        cameraLens = cameraLens,
        openImagePicker = false,
        onCompletion = {
            onCompletion(it)
        },
        imagePickerHandler = {
            openImagePicker = it
        },
        onFailure = {
            coroutineScope.launch {
                if (it.isEmpty()) {
                    appState.snackbarHostState.showSnackbar("Invalid qr code")
                } else {
                    appState.snackbarHostState.showSnackbar(it)
                }
            }
        },
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions