가이드
Launch Navigator 튜토리얼
Launch Navigator 사용하기 (@capgo/capacitor-launch-navigator)
메인 플러그인 인터페이스.
설치
bun add @capgo/capacitor-launch-navigator
bunx cap sync
이 플러그인은 다음을 제공합니다.
navigate- 위도와 경도에 따라 위치를 이동합니다.isAppAvailable- 특정 네비게이션 앱이 사용 가능한지 확인합니다.getAvailableApps- 장치에 사용 가능한 네비게이션 앱 목록을 가져옵니다.getSupportedApps- 현재 플랫폼에서 지원하는 앱 목록을 가져옵니다.
예제 사용법
navigate
위도와 경도에 따라 위치를 이동합니다.
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
await LaunchNavigator.navigate({} as {
/**
* Destination coordinates [latitude, longitude]
*/
destination: [number, number];
/**
* Optional navigation options
*/
options?: NavigateOptions;
});
isAppAvailable
특정 네비게이션 앱이 사용 가능한지 확인합니다.
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
await LaunchNavigator.isAppAvailable({} as {
/**
* App identifier to check
*/
app: IOSNavigationApp | AndroidNavigationApp | string;
});
getAvailableApps
장치에 사용 가능한 네비게이션 앱 목록을 가져옵니다.
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
await LaunchNavigator.getAvailableApps();
getSupportedApps
현재 플랫폼에서 지원하는 앱 목록을 가져옵니다.
import { LaunchNavigator } from '@capgo/capacitor-launch-navigator';
await LaunchNavigator.getSupportedApps();
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-launch-navigator/
- 문서: /docs/plugins/launch-navigator/
capgo에서 계속 진행하세요: Using @capgo/capacitor-launch-navigator
__CAPGO_KEEP_0__을 사용하고 있다면 Using @capgo/capacitor-launch-navigator __CAPGO_KEEP_0__을 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-launch-navigator와 연결하세요. @capgo/capacitor-launch-navigator를 사용하여 @capgo/capacitor-launch-navigator의 implementation detail을 참조하세요. Getting Started Getting Started의 implementation detail을 참조하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리의 제품 워크플로우를 참조하세요. Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 정보를 위해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 정보를 위해