Package-level declarations
Types
Link copied to clipboard
Listener interface for handling results from the code analysis process.
Link copied to clipboard
class CodeResult
Result from code scanner.
Link copied to clipboard
class CodeTypeNotSupportedException(val codeType: CodeType, message: String = "Code type ") : Exception
Exception thrown when a specific CodeType is not supported by the device's camera scanner.
Link copied to clipboard
Represents a corner point of a detected code in DP.
Functions
Link copied to clipboard
actual fun CameraSession.rememberCodeImageAnalyzer(codeTypes: List<CodeType>, onError: (Throwable) -> Unit, codeAnalyzerListener: CodeAnalyzerListener): ImageAnalyzer
expect fun CameraSession.rememberCodeImageAnalyzer(codeTypes: List<CodeType> = listOf(CodeType.QRCode), onError: (Throwable) -> Unit = {}, codeAnalyzerListener: CodeAnalyzerListener): ImageAnalyzer
Creates and remembers an ImageAnalyzer for scanning barcodes and QR codes.
actual fun CameraSession.rememberCodeImageAnalyzer(codeTypes: List<CodeType>, onError: (Throwable) -> Unit, codeAnalyzerListener: CodeAnalyzerListener): ImageAnalyzer