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.
설치
설치 제목AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. 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 동작을 검토하세요
- Capgo 스타일 가이드를 읽어보세요 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);메인 런타임 그룹
제목: 'Main runtime groups'ZebraConfiguration프로파일과 비활성 앱 설정을 관리합니다.ZebraNotificationDataWedge 알림 방송에 대한 등록을 위해 스캐너 상태 및 프로파일 Switch와 같은 것을 관리합니다.ZebraQuery활성 프로파일, 연관된 앱, 스캐너 상태, 스캐너 목록 및 버전 정보를 읽습니다.ZebraRuntimeDataWedge를 활성화/비활성화하고 스캐너를 Switch하고 스캔을 트리거합니다.
Platform scope
제목: 'Platform scope'- Android: Zebra 장치에 DataWedge가 설치된 경우 완전히 지원됩니다.
- iOS: DataWedge는 Zebra Android 전용이므로 사용할 수 없습니다.
- Web: API 형태의 일치도 이상으로 사용할 수 없습니다.
Getting Started에서 계속하세요.
제목: 'Getting Started에서 계속하세요.'이 기능을 사용 중이라면 Getting Started 자연 플러그인 작업을 계획하기 위해 Using @capgo/capacitor-zebra-datawedge 자연 플러그인 기능을 위해 Using @capgo/capacitor-zebra-datawedge Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, 플러그인을 추가하거나 업데이트 플러그인 구현 세부 정보 Ionic Enterprise 플러그인 대체 이온 이코노미 플러그인 대체 제품 워크플로우에 대한 것입니다.