__CAPGO_KEEP_5__
설치 단계와 이 플러그인에 대한 전체 마크다운 가이드가 포함된 설정 프롬프트 복사하기
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 -
자연 플랫폼 Sync
터미널 창 bunx cap sync android -
__CAPGO_KEEP_0__
- __CAPGO_KEEP_1__
- 활성화
Intent Output. - 설정
Intent delivery으로Broadcast Intent. - 예를 들어
app.capgo.zebra.SCAN.
-
Android의 동작을 검토하세요
- Android의 참고사항을 읽으세요 제품 환경에서 소프트 트리거를 활성화하기 전에 기본 설정
기본 설정
“기본 설정” 섹션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프로필과 비활성 앱 설정을 관리합니다.ZebraNotification스캐너 상태 및 프로필 Switch와 같은 DataWedge 알림 방송에 등록합니다.ZebraQuery활성 프로필, 연관된 앱, 스캐너 상태, 스캐너 목록 및 버전 정보를 읽습니다.ZebraRuntimeDataWedge를 활성/비활성화하고 스캐너를 Switch하고 스캔을 트리거합니다.
플랫폼 범위
플랫폼 범위- Android: DataWedge가 설치된 Zebra 장치에서 완벽하게 지원됩니다.
- iOS: DataWedge는 Zebra Android 전용이므로 사용할 수 없습니다.
- Web: API 형태의 일치도 이상으로는 사용할 수 없습니다.