DataWedge Intent API를 사용하여 안드로이드 기기에서 Zebra DataWedge 스캐너와 통신할 수 있는 플러터 패키지입니다. 개발자는 스캐너 설정을 구성하고, 스캔 데이터를 수신하며, 플러터 애플리케이션 내에서 입력 소스를 직접 관리할 수 있습니다. 이 패키지는 Zebra 모바일 장치와의 원활한 통합을 위해 설계되어 재고, 물류 및 소매 환경과 같은 바코드 스캔이 필수적인 분야에 적합합니다. 플랫폼 채널을 통해 네이티브 안드로이드 기능을 활용하여 신뢰성 높은 성능과 스캔 작업에 대한 저수준 제어를 보장합니다.
사용 사례
재고 관리
소매 체크아웃 시스템
물류 추적
자산 태깅
바코드 데이터 수집
주요 기능
실시간 스캔 데이터 수신
사용자 정의 가능한 스캐너 입력 원본
안드로이드 전용 네이티브 통합
의도 기반 통신
여러 제브라 장치 모델 지원
적합한 대상
제바 앤드로이드 장치를 대상으로 하는 개발자
신뢰할 수 있는 바코드 스캔이 필요한 응용 프로그램
기업용 재고 앱
현장 서비스 및 창고 소프트웨어
고려 사항
안드로이드 플랫폼만 필요
Zebra 장치 종속성
올바른 DataWedge 구성이 필요합니다
DataWedge가 설치된 장치에 한정
추가 권한이 필요할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
flutter_datawedge
A Flutter package to communicate with Zebra DataWedge scanners.
Internally, this package uses the DataWedge APIs and therefore is only compatible with Android.
Getting Started
Example
Initialize the FlutterDataWedge Object and attach a listener to the onScanResult Stream.
Unlike previous versions, this version of the package won't create a profile and configure it while calling initialize.
Instead a profile can be created using the createDefaultProfile method.
To query all available profiles use requestProfiles, to query the active profile use requestActiveProfile.
The functions waitForProfiles and waitForActiveProfile can be used to wait results after the requesting function has been called.
Further, see the official documentation to create, update or replace a DataWedge profiles.
async/await
Event though the public methods enableScanner(), activateScanner() and scannerControl() are
asynchronous they return as soon as the command is executed.
Each of these methods (as well as initialize()) will cause ActionResult objects to be emitted on the
onScannerEvent Stream.
Those can be used to determine the outcome of a command and properly wait for it.
Here is a short example:
FlutterDataWedge dw = FlutterDataWedge();
await dw.initialize();
// This would be a properly awaited version of enableScannerFuture<ActionResult> enableScanner() {
final completer = Completer<ActionResult>();
final myIdentifier = "someIdentifier";
StreamSubscription onScannerEventSubscription = dw.onScannerEvent.listen((ActionResult result) {
if (result.commandIdentifier == myIdentifier) {
completer.complete(result);
}
});
dw.enablescanner(true,commandIdentifier: myIdentifier);
return completer.future;
}