メインコンテンツにジャンプ

Getting Started

GitHub
  1. プラグインをインストール

    ターミナルウィンドウ
    bun add @capgo/capacitor-zebra-datawedge
  2. ネイティブプラットフォームを同期

    ターミナルウィンドウ
    bunx cap sync android
  3. デバイス上のDataWedgeを設定

    • __CAPGO_KEEP_0__を選択してください。
    • __CAPGO_ENABLE__ Intent Output.
    • __CAPGO_SET__ Intent deliveryBroadcast Intent.
    • __CAPGO_TO__ app.capgo.zebra.SCAN.
  4. __CAPGO_CHOOSE__

Androidの注意事項を確認する

__CAPGO_PRODUCTION__
import {
DataWedgeConfigMode,
DataWedgePlugin,
ZebraConfiguration,
ZebraDataWedge,
ZebraRuntime,
} from '@capgo/capacitor-zebra-datawedge';
const intentAction = 'app.capgo.zebra.SCAN';
await ZebraConfiguration.setConfig({
profileName: 'CapgoZebraProfile',
profileEnabled: true,
configMode: DataWedgeConfigMode.CREATE_IF_NOT_EXIST,
appList: [
{
packageName: 'com.example.app',
activityList: ['*'],
},
],
pluginConfigs: [
{
pluginName: DataWedgePlugin.BARCODE,
resetConfig: true,
paramList: {
scanner_selection: 'auto',
scanner_input_enabled: 'true',
},
},
{
pluginName: DataWedgePlugin.INTENT,
resetConfig: true,
paramList: {
intent_output_enabled: 'true',
intent_action: intentAction,
intent_delivery: 2,
},
},
],
});
await ZebraDataWedge.addListener('scan', (result) => {
console.log('Scanned', result.data, result.labelType);
});
const result = await ZebraRuntime.softScanTrigger(intentAction);
console.log(result.data);
  • ZebraConfiguration manages profiles and disabled-app settings.
  • ZebraNotification registers for DataWedge notification broadcasts such as scanner status and profile switches.
  • ZebraQuery reads active profiles, associated apps, scanner status, scanner lists, and version info.
  • ZebraRuntime enables or disables DataWedge, switches scanners, and triggers scans.
  • Android: fully supported on Zebra devices with DataWedge installed.
  • iOS: not available because DataWedge is Zebra Android specific.
  • Web: not available beyond API shape parity.

あなたは「を使用しています Getting Started native plugin の作業を計画する場合、を接続してください native capability を「@capgo/capacitor-zebra-datawedge」で使用する場合 for the native capability in Using @capgo/capacitor-zebra-datawedge, Capgo Plugin Directory Capgo Plugins by __CAPGO_KEEP_1__ Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-zebra-datawedge イオニック エンタープライズ プラグイン代替 イオニック エンタープライズ プラグインの製品ワークフロー用途.