Skip to content

@capgo/capacitor-자동

Capacitor 앱에서 템플릿 안전한 액션을 차량 디스플레이로 보내고 JavaScript에서 드라이버 의도 이벤트를 받으세요.

@capgo/capacitor-auto __CAPGO_KEEP_0__은 WebView를 승용차 화면에 반영하지 않습니다. 전화 앱은 승용차 템플릿을 제한적으로 전송하고 승용차 호스트는 CarPlay 또는 Android Auto UI로 렌더링하고 행 선택은 __CAPGO_KEEP_0__ 앱으로 이벤트로 돌아옵니다.

It does not mirror a WebView to the car screen. The phone app sends a limited car template, the car host renders it with CarPlay or Android Auto UI, and row selections come back to the Capacitor app as events.

섹션, 행, 서브타이틀 및 애플리케이션 정의된 페이로드를 포함하는 루트 템플릿을 푸시하세요.

승용차에서 전화

__CAPGO_KEEP_0__

자동 이벤트 감지 carAction 차량 디스플레이에서 액션을 선택할 때 이벤트를 감지합니다.

연결 상태

차량 호스트가 연결되거나 해제될 때 CarPlay 또는 Android Auto 호스트에 반응합니다.

자연스러운 진입점

차량 호스트가 통합을 시작할 수 있도록 CarPlay scene delegate 및 Android Auto를 제공합니다. CarAppService 코어

  • isAvailable() 자동화된 메시지를 전송합니다.
  • setRootTemplate(options) 자동화된 메시지를 전송합니다.
  • sendMessage(options) 자동화된 메시지를 전송합니다.
  • connectionChanged 차 호스트가 연결되거나 해제될 때 보고합니다.
  • carAction 차 행이 선택될 때 발생합니다.
  • messageReceived 애플리케이션 정의 브리지 메시지를 전달합니다.

플랫폼 모델

플랫폼 모델

iOS는 CarPlay를 사용하고 CPTemplateApplicationSceneDelegate iOS는 CarPlay를 사용하고 템플릿화된 iOS CarPlay 화면을 렌더링합니다. CPListTemplate.

Android는 AndroidX Car App Library를 사용하고 CarAppServiceAndroid는 AndroidX Car App Library를 사용하고 템플릿화된 Android Auto 화면을 렌더링합니다.

두 플랫폼 모두 애플과 구글의 자동차 앱 정책을 따르도록 앱을 구성해야 하며, 올바른 앱 카테고리, 권한, 검토 승인 및 플랫폼 설정이 필요합니다.

실질적인 정보

실질적인 정보

이 참조는 Cloudflare에서同步합니다. src/definitions.ts in capacitor-자동.

capgo에서 계속하기 @capacitor-자동

제목 "capgo에서 계속하기 @capacitor-자동"

Capacitor를 사용하여 네이티브 플러그인 작업을 계획하고 있다면 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-자동과 연결하세요. @capgo/capacitor-자동을 사용하여 네이티브 기능과 연결하세요. Capacitor를 사용하여 네이티브 기능과 연결하는 방법은 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-자동을 사용하여 네이티브 기능과 연결하는 방법입니다. Using @capgo/capacitor-auto for the native capability in Using @capgo/capacitor-auto, Capacitor를 사용하여 제품 워크플로우와 연결하는 방법은 Capgo 플러그인 디렉토리입니다. Capacitor를 사용하여 제품 워크플로우와 연결하는 방법은 Capgo 플러그인 디렉토리입니다. Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인 추가 또는 업데이트, 그리고 아이오닉 엔터프라이즈 플러그인 대체 __CAPGO_KEEP_0__ 플러그인 제품 워크플로우