Getting Started
インストール手順とこのプラグインの全マークダウンガイドのセットアップ用の質問をコピーする。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-zebra-datawedge`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/zebra-datawedge/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
-
プラグインをインストール
ターミナルウィンドウ bun add @capgo/capacitor-zebra-datawedge -
ネイティブプラットフォームを同期
ターミナルウィンドウ bunx cap sync android -
デバイス上のDataWedgeを設定
- __CAPGO_KEEP_0__を選択してください。
- __CAPGO_ENABLE__
Intent Output. - __CAPGO_SET__
Intent deliveryにBroadcast Intent. - __CAPGO_TO__
app.capgo.zebra.SCAN.
-
__CAPGO_CHOOSE__
- __CAPGO_ACTION__ Androidの動作を確認する __CAPGO_READ__
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);Main runtime groups
Section titled “Main runtime groups”ZebraConfigurationmanages profiles and disabled-app settings.ZebraNotificationregisters for DataWedge notification broadcasts such as scanner status and profile switches.ZebraQueryreads active profiles, associated apps, scanner status, scanner lists, and version info.ZebraRuntimeenables or disables DataWedge, switches scanners, and triggers scans.
Platform scope
Section titled “Platform scope”- 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.
Keep going from Getting Started
「Getting Started」から続けてくださいあなたは「を使用しています 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 イオニック エンタープライズ プラグイン代替 イオニック エンタープライズ プラグインの製品ワークフロー用途.