pushinbr/pam-native-scanner

Real-time QR and barcode scanning with native camera previews for PAM Native.

Maintainers

Package info

github.com/push-in/pam-native-scanner

Language:Kotlin

Type:pam-native-plugin

pkg:composer/pushinbr/pam-native-scanner

Transparency log

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-08-01 04:27 UTC

This package is auto-updated.

Last update: 2026-08-01 06:06:25 UTC


README

Real-time QR and barcode scanning with native previews. Android uses CameraX 1.6.1 and the bundled ML Kit model 17.3.0, so first use does not depend on a model download. iOS uses AVFoundation and Vision.

composer require pushinbr/pam-native-scanner
pam mobile codegen
pam mobile ios:prepare
return Pam\Native\Scanner\ScannerView::make(
    Pam\Native\Scanner\BarcodeFormat::QrCode,
    Pam\Native\Scanner\BarcodeFormat::Ean13,
)->duplicateInterval(1200)->onResult(function (Pam\Native\Scanner\ScanResult $result): void {});

The analyzer keeps only the latest frame, runs outside the UI thread, closes every image proxy and suppresses duplicate values for a configurable interval. Camera permission denial and native failures are typed events. Camera usage metadata and Android permission merging are supplied by the plugin.

Platform support: Android API 26+, iOS 15+, PAM Native 0.6.x.