Skip to content

存在一个 native crash #58

@Edison0716

Description

@Edison0716
Image
    suspend fun decodeFrom3rd(targetBmp: Bitmap): String? = suspendCancellableCoroutine { continuation ->
        BarcodeDecoder.process(targetBmp, Barcode.FORMAT_QR_CODE).addOnSuccessListener {
            if (it.isNotEmpty()) {
                continuation.resumeWith(Result.success(it.firstOrNull()?.rawValue))
            } else {
                continuation.resumeWithException(Resources.NotFoundException("No QR code found"))
            }
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions