@ 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/
Using @capgo/capacitor-launch-navigator
이미 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-launch-navigator를 사용 중이라면 네이티브 플러그인 작업을 계획하고 @capgo/capacitor-launch-navigator를 연결하세요. @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-launch-navigator를 사용하여 네이티브 플러그인 작업을 계획하고 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-launch-navigator를 연결하세요. 이미 @capgo/capacitor-launch-navigator를 사용 중이라면 @capgo/capacitor-launch-navigator를 연결하세요. for the implementation detail in @capgo/capacitor-launch-navigator, 시작하기 Capacitor-__CAPGO_KEEP_0__-launch-navigator 구현 세부 사항에 대해 Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and Capacitor-__CAPGO_KEEP_0__ 플러그인 및 Capacitor-__CAPGO_KEEP_1__ 플러그인 구현 세부 사항에 대해 플러그인 추가 또는 업데이트