Using @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 Using @capgo/capacitor-launch-navigator 네이티브 플러그인 작업을 계획하고 있습니다. @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-launch-navigator 네이티브 플러그인 작업을 계획하고 있습니다. @capgo/capacitor-launch-navigator capgo capacitor-launch-navigator 구현 세부 사항에 대해 Getting Started __CAPGO_KEEP_0__ 구현 세부 사항에 대해 Capgo 플러그인 디렉토리 Capgo 플러그인에 대해 __CAPGO_KEEP_1__ Capacitor 플러그인에 대해 Capgo 구현 세부 사항 for the implementation detail in Capacitor Plugins by Capgo, and 플러그인 추가 또는 업데이트 구현 세부 사항 Footer