시작하기
설치 단계 및 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시문을 복사하세요.
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 -
장치에 데이터 웨이브를 구성하세요
- 앱 패키지와 관련된 제재 데이터 웨이브 프로필을 생성하거나 선택하세요.
- 켜기
Intent Output. - 설정
Intent delivery으로Broadcast Intent. - 선택한 액션을 선택하십시오.
app.capgo.zebra.SCAN.
-
안드로이드 동작을 검토하세요.
- 안드로이드에 대한 정보를 읽으십시오. 프로덕션에서 소프트 트리거를 활성화하기 전에 읽으십시오. 기본 설정
기본 설정
클립보드에 복사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);프로파일과 비활성화된 앱 설정을 관리합니다.
데이터 웨지 알림 방송에 대한 스캐너 상태와 프로파일 Switches를 등록합니다.ZebraConfiguration프로파일과 비활성화된 앱 설정을 관리합니다.ZebraNotification데이터 웨지 알림 방송에 대한 스캐너 상태와 프로파일 Switches를 등록합니다.ZebraQuery활성 프로필, 연관 앱, 스캐너 상태, 스캐너 목록 및 버전 정보를 읽습니다.ZebraRuntime데이터 웨지의 사용을 허용하거나 차단하고 스캐너를-switch하고 스캔을 트리거합니다.
플랫폼 범위
플랫폼 범위- Android: 데이터 웨지가 설치된 제바(Zebra) 장치에서 완전히 지원됩니다.
- iOS: 데이터 웨지가 제바 안드로이드(Zebra Android) 전용이므로 사용할 수 없습니다.
- Web: API 형태의 일치도 이상으로는 사용할 수 없습니다.