Using @capgo/capacitor-launch-navigator
Main plugin interface.
설치
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를 사용하여 @capgo/capacitor-launch-navigator를 계속 사용하세요.
__CAPGO_KEEP_0__를 사용하여 @capgo/capacitor-launch-navigator를 사용하여 네이티브 플러그인 작업을 계획하고 연결하려면 @capgo/capacitor-launch-navigator와 연결하세요. 구현 세부 정보에 대한 @capgo/capacitor-launch-navigator 에서 Getting Started 구현 세부 정보에 대한 Getting Started 에서 Capgo 플러그인 디렉토리 구현 세부 정보에 대한 Capgo 플러그인 디렉토리 내의 제품 워크플로우 Capacitor 플러그인들에 의해 Capgo 구현 세부 정보에 대한 Capacitor 플러그인들에 의해 Capgo 플러그인 추가 또는 업데이트 구현 세부 정보에 대한 플러그인 추가 또는 업데이트