기본 설정
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-launch-navigator`
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/launch-navigator/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-launch-navigator` plugin in my project.만약에 수동 설정을 선호한다면, 다음 명령어를 실행하여 플러그인을 설치하고 아래의 플랫폼별 지침을 따르면 된다.
bun add @capgo/capacitor-launch-navigatorbunx cap syncImport
Import 섹션import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';API 개요
API 개요 섹션navigate
navigate 섹션위도와 경도에 따라 위치를 이동
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
await LaunchNavigator.navigate({ destination: [48.8566, 2.3522] });isAppAvailable
Section titled “앱이 사용 가능한지 확인하기”특정 네비게이션 앱이 사용 가능한지 확인하세요
import { LaunchNavigator, IOSNavigationApp } from '@capgo/capacitor-launch-navigator';
const result = await LaunchNavigator.isAppAvailable({ app: IOSNavigationApp.APPLE_MAPS });console.log(result);getAvailableApps
Section titled “사용 가능한 앱 목록 가져오기”장치에 설치된 네비게이션 앱 목록을 가져오세요
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
const result = await LaunchNavigator.getAvailableApps();console.log(result);getSupportedApps
Section titled “지원하는 앱 목록 가져오기”현재 플랫폼에서 지원하는 앱 목록을 가져오세요
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
const result = await LaunchNavigator.getSupportedApps();console.log(result);getDefaultApp
Section titled “기본 앱 이름 가져오기”네비게이션 앱의 기본 이름을 가져오세요
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
const result = await LaunchNavigator.getDefaultApp();console.log(result);타입 참조
타입 참조 섹션NavigateOptions
NavigateOptions 섹션이동 옵션
export interface NavigateOptions { /** * Starting location coordinates [latitude, longitude] */ start?: [number, number];
/** * Starting location name */ startName?: string;
/** * Destination name (will be ignored since we only support coordinates) */ destinationName?: string;
/** * Transport mode */ transportMode?: TransportMode;
/** * Specific app to launch (if not specified, will use default or prompt) */ app?: IOSNavigationApp | AndroidNavigationApp | string;
/** * Launch mode */ launchMode?: LaunchMode;
/** * Additional parameters specific to certain apps */ extras?: Record<string, any>;
/** * Enable debug logging */ enableDebug?: boolean;}IOSNavigationApp
IOSNavigationApp 섹션iOS에서 사용 가능한 이동 앱
export enum IOSNavigationApp { APPLE_MAPS = 'apple_maps', GOOGLE_MAPS = 'google_maps', WAZE = 'waze', CITYMAPPER = 'citymapper', GARMIN_NAVIGON = 'garmin_navigon', TRANSIT_APP = 'transit_app', YANDEX_NAVIGATOR = 'yandex', UBER = 'uber', TOMTOM = 'tomtom', SYGIC = 'sygic', HERE_MAPS = 'here', MOOVIT = 'moovit', LYFT = 'lyft', MAPS_ME = 'mapsme', CABIFY = 'cabify', BAIDU = 'baidu', GAODE = 'gaode', TAXI_99 = '99taxi',}AndroidNavigationApp
AndroidNavigationApp 섹션Android에서 사용 가능한 이동 앱
export enum AndroidNavigationApp { GOOGLE_MAPS = 'google_maps', WAZE = 'waze', CITYMAPPER = 'citymapper', UBER = 'uber', YANDEX = 'yandex', SYGIC = 'sygic', HERE_MAPS = 'here', MOOVIT = 'moovit', LYFT = 'lyft', MAPS_ME = 'mapsme', CABIFY = 'cabify', BAIDU = 'baidu', GAODE = 'gaode',}AvailableApp
사용 가능한 앱애플리케이션 사용 가능 여부를 확인한 결과.
export interface AvailableApp { /** * App identifier */ app: string;
/** * Display name of the app */ name: string;
/** * Whether the app is available on the device */ available: boolean;}TransportMode
“TransportMode” 섹션운송 모드
export enum TransportMode { DRIVING = 'driving', WALKING = 'walking', BICYCLING = 'bicycling', TRANSIT = 'transit',}LaunchMode
“LaunchMode” 섹션런치 모드
export enum LaunchMode { MAPS = 'maps', TURN_BY_TURN = 'turn_by_turn', GEO = 'geo',}실질적 출처
실질적 출처 섹션이 페이지는 플러그인의 src/definitions.ts로 생성되었습니다. upstream의 공개 API이 변경될 때 다시 싱크를 실행하세요.
다음 단계로 진행하세요
다음 단계로 진행하세요Capgo를 사용 중이라면 Getting Started Capgo를 사용하여 대시보드와 API 연산을 계획하고 싶다면 API와 연결하세요 Capgo를 사용하여 @capgo/capacitor-launch-navigator를 사용 Capgo를 사용하여 @capgo/capacitor-launch-navigator의 네이티브 기능을 사용 API 개요 Capgo를 사용하여 @API/__CAPGO_KEEP_1__-launch-navigator의 구현 세부 사항 소개 소개에서 구현 세부 정보에 대해 설명합니다. API 키 API 기기 __CAPGO_KEEP_0__