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 -
__CAPGO_KEEP_0__을 설정하세요.
- __CAPGO_KEEP_0__을 생성하거나 __CAPGO_KEEP_0__에 연결된 앱 패키지와 관련된 제이브라 데이터 웨이브 프로필을 선택하세요.
- __CAPGO_KEEP_0__
Intent Output. - __CAPGO_KEEP_1__
Intent delivery__CAPGO_KEEP_2__Broadcast Intent. - __CAPGO_KEEP_3__
app.capgo.zebra.SCAN.
-
__CAPGO_KEEP_4__
- __CAPGO_KEEP_5__ __CAPGO_KEEP_6__ __CAPGO_KEEP_7__
__CAPGO_KEEP_8__
__CAPGO_KEEP_9__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데이터 웨이브 알림 방송에 대한 스캔 상태 및 프로필 Switches와 같은 등록합니다.ZebraQuery활성 프로필, 연관된 앱, 스캔 상태, 스캔 목록 및 버전 정보를 읽습니다.ZebraRuntime데이터 웨이브를 활성/비활성화하고 스캐너를 Switch하고 스캔을 트리거합니다.
플랫폼 범위
플랫폼 범위 섹션- 안드로이드: 데이터 웨이브가 설치된 제바 디바이스에서 완벽하게 지원됩니다.
- iOS: 데이터 웨이브가 제바 안드로이드 전용이기 때문에 사용할 수 없습니다.
- 웹: API 형태의 평형 이외에는 사용할 수 없습니다.
Getting Started에서 계속 진행하세요
Getting Started에서 계속 진행하는 방법Getting Started를 사용하시는 경우 Getting Started native 플러그인 작업을 계획하고자 할 때, Using @capgo/capacitor-zebra-datawedge Using @capgo/capacitor-zebra-datawedge에서 native 기능을 연결하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 확인하세요. Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부사항을 확인하세요. 플러그인을 추가하거나 업데이트 하세요 구현 세부 사항에 대한 정보는 Adding or Updating Plugins에서 찾을 수 있습니다. Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternatives의 제품 워크플로에 대한 정보입니다.