Android 동작
이 플러그인을 설치하는 단계와 전체 마크다운 가이드를 포함한 설치 설정 프롬프트를 복사합니다.
인텐트 출력이 필요합니다.
인텐트 출력이 필요합니다이 플러그인은 Android 브로드캐스트를 통해 스캔 결과를 듣습니다. Zebra DataWedge 프로필은 다음을 수행해야합니다.
- 앱 패키지와 연관되어야합니다.
- 활성화
Intent Output - 사용
Broadcast Intent배송 - __CAPGO_KEEP_0__ 앱으로 동일한 액션을 전달하여 스캔을 보내세요.
softScanTrigger()
If those values do not match, the plugin can still manage profiles and query DataWedge state, but scan events will not reach your Capacitor app.
제목: 스캔 이벤트
__CAPGO_KEEP_0__Subscribe to the Capacitor scan 클립보드 복사
import { ZebraDataWedge } from '@capgo/capacitor-zebra-datawedge';
await ZebraDataWedge.addListener('scan', (event) => { console.log(event.data); console.log(event.labelType); console.log(event.source);});softScanTrigger(intentAction) 알림
사용 ZebraNotification.registerForNotification() 자연스러운 스캐너 상태 또는 프로필 Switch 업데이트 필요할 때:
import { DataWedgeNotificationType, ZebraNotification,} from '@capgo/capacitor-zebra-datawedge';
await ZebraNotification.registerForNotification({ notificationType: DataWedgeNotificationType.SCANNER_STATUS, callback: (event) => { console.log(event.scannerStatus); },});제작 노트
제작 노트- DataWedge 명령은 Zebra의
com.symbol.datawedge패키지를 설치하고 활성화해야 합니다. softRfidTrigger()첫 번째 등록 된 스캔 인텐트 액션을 사용합니다. RFID 읽기 전에 하나를 등록하세요.- 스캐닝 흐름당 하나의 표준 인텐트 액션을 유지하세요. DataWedge 프로필과 앱 리스너 간의 불일치가 줄어듭니다.
Android 동작에서 계속
Android 동작에서 계속Android 플러그인 개발을 위해 native 플러그인 작업을 계획하는 경우 Android Behavior native 플러그인 작업을 위해 native 플러그인 작업을 계획하는 경우 Using @capgo/capacitor-zebra-datawedge for the native capability in Using @capgo/capacitor-zebra-datawedge, Using @Capgo/__CAPGO_KEEP_1__-zebra-datawedge Capgo 플러그인 디렉토리 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, __CAPGO_KEEP_0__ 플러그인 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 이오닉 엔터프라이즈 플러그인 대체 제품 워크플로우에 대한 것입니다.