パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.2.0

flutter_datawedge

DataWedge Intent API を使用して Zebra DataWedge スキャナーと通信するための Flutter パッケージ

Android
30日間ダウンロード
7670
いいね数
41
Pub ポイント
160

パッケージをインストール

flutter pub add flutter_datawedge

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutterパッケージで、DataWedge Intent APIを使用してAndroidデバイス上のZebra DataWedgeスキャナとの通信を可能にします。開発者はスキャナの設定を構成し、スキャンデータを受け取り、Flutterアプリ内での入力ソースを直接管理できます。このパッケージは、Zebraモバイルデバイスとのシームレスな統合を目的としており、在庫管理、物流、小売環境など、バーコードスキャンが不可欠な場面に最適です。プラットフォームチャネルを通じてネイティブAndroid機能を利用することで、信頼性の高いパフォーマンスとスキャン操作に対する低レベル制御を実現しています。

用途

  • 在庫管理
  • 小売レジシステム
  • 物流トラッキング
  • アセットタグ付け
  • バーコードデータ収集

主な機能

  • リアルタイムスキャンデータ受信
  • 設定可能なスキャナ入力ソース
  • Android専用のネイティブ統合
  • 意図に基づくコミュニケーション
  • 複数のゼーブラデバイスモデルのサポート

適している対象

  • Zebra Androidデバイスをターゲットにする開発者
  • 信頼性のあるバーコードスキャンを必要とするアプリケーション
  • エンタープライズグレードの在庫アプリ
  • 現場サービスおよび倉庫ソフトウェア

注意事項

  • Android プラットフォームのみが必要
  • Zebra デバイスの依存関係
  • 適切なDataWedge設定が必要です
  • DataWedge がインストールされたデバイスに限定
  • 追加の権限が必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_datawedge

pub package

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.


    FlutterDataWedge dw = FlutterDataWedge();
    await dw.initialize();
    await createDefaultProfile(profileName: "Example Profile");
    StreamSubscription onScanSubscription = dw.onScanResult.listen((ScanResult result) {
        print(result.data);
    });
    
    [...]
    
    // Stop listening for new scans.
    onScanSubscription.cancel();

Also checkout the example application.

Profiles

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 enableScanner
    Future<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;
    }

Acknowledgements

The package was started by rafaeljustinox and and contains contributions by LenhartStephan. It is now maintained by Circus Kitchens.

カテゴリー

依存関係

依存関係一覧 8 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。