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.
설치
설치 섹션 제목Capgo의 AI 보조 설치를 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 기능을 추가하려면 다음 명령어를 사용하세요.
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins다음 명령어를 사용하여 다음 프롬프트를 입력하세요.
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-zebra-datawedge` plugin in my project.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래에 플랫폼에 따라 설명된 지침을 따르세요.
-
플러그인 설치
터미널 창 bun add @capgo/capacitor-zebra-datawedge -
네이티브 플랫폼을 동기화
터미널 창 bunx cap sync android -
장치에서 DataWedge 구성
- 앱 패키지와 관련된 Zebra DataWedge 프로필을 만들거나 선택하십시오.
- 켜기
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스캔어 상태 및 프로필 Switching과 같은 데이터 웨지 알림 방송에 등록합니다.ZebraQuery활성 프로필, 연관된 앱, 스캐너 상태, 스캐너 목록 및 버전 정보를 읽습니다.ZebraRuntime데이터 웨지를 활성/비활성화하고 스캐너를 Switch하고 스캔을 트리거합니다.
플랫폼 범위
기본 설정- 안드로이드: 데이터 웨지가 설치된 제바(Zebra) 기기에서 완벽하게 지원됩니다.
- iOS: 사용이 불가능합니다. DataWedge는 Zebra Android 전용입니다.
- Web: API 형태의 일치도 이상을 넘어서는 사용이 불가능합니다.
Getting Started에서 계속 진행하세요.
Getting Started에서 계속 진행하세요이러한 제품을 사용 중이라면 Getting Started를 사용하여 native plugin 작업을 계획하고 capgo/capacitor-zebra-datawedge와 연결하세요. Using @capgo/capacitor-zebra-datawedge를 사용하여 Capgo Plugin Directory Capgo Plugin Directory를 사용하여 Capacitor Plugins by Capgo Capacitor 플러그인에 대한 구현 세부 정보는 Capgo에서 확인할 수 있습니다. 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인에 대한 구현 세부 정보는 플러그인 추가 또는 업데이트, 및 Ionic Enterprise 플러그인 대체 Ionic Enterprise 플러그인 대체에 대한 제품 워크플로입니다.