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. - Live Update와 같은 액션을 선택하세요
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프로파일과 비활성 앱 설정을 관리합니다ZebraNotificationDataWedge 알림 방송에 대한 스캐너 상태 및 프로파일 Switches와 같은 등록을 수행합니다.ZebraQuery스캐너 상태, 프로파일 Switches, 연관된 앱, 스캐너 목록 및 버전 정보를 읽습니다.ZebraRuntimeDataWedge를 활성/비활성화하고 스캐너 Switch, 스캔을 트리거합니다.
범위
범위- Android: Zebra 장치에 DataWedge가 설치된 경우 완전히 지원됩니다.
- iOS: DataWedge는 Zebra Android 전용이므로 사용할 수 없습니다.
- Web: API 형태의 동일성만 지원합니다.
Getting Started에서 계속하세요.
Getting Started만약 사용중이라면 시작하기 native 플러그인 작업을 계획하기 위해, 그것을 @capgo/capacitor-zebra-datawedge native 기능을 위한 Using @capgo/capacitor-zebra-datawedge, Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 위한 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 정보를 위한 플러그인을 추가하거나 업데이트 플러그인을 추가하거나 업데이트하는 구현 세부 정보를 위한, 그리고 Ionic Enterprise 플러그인 대체품 Ionic Enterprise 플러그인 대체품의 제품 워크플로우를 위한