Getting Started
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사합니다.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-proximity`
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/proximity/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 도움을 받아 플러그인을 설치할 수 있습니다. 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-proximity` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하여 플러그인을 설치하고 아래의 플랫폼별 지침을 따르세요.
bun add @capgo/capacitor-proximitybunx cap syncImport
Import라는 제목의 섹션import { CapacitorProximity } from '@capgo/capacitor-proximity';API 개요
API 개요라는 제목의 섹션__CAPGO_KEEP_0__
__CAPGO_KEEP_1__ UIDevice.isProximityMonitoringEnabled__CAPGO_KEEP_2__ TYPE_PROXIMITY __CAPGO_KEEP_3__
import { CapacitorProximity } from '@capgo/capacitor-proximity';
await CapacitorProximity.enable();disable
__CAPGO_KEEP_5____CAPGO_KEEP_6__
__CAPGO_KEEP_7__
import { CapacitorProximity } from '@capgo/capacitor-proximity';
await CapacitorProximity.disable();getStatus
__CAPGO_KEEP_9____CAPGO_KEEP_10__
import { CapacitorProximity } from '@capgo/capacitor-proximity';
const status = await CapacitorProximity.getStatus();Type Reference
타입 참조ProximityStatusResult
ProximityStatusResult근접 상태 결과 getStatus().
export interface ProximityStatusResult { /** * Whether the current device exposes a usable proximity sensor. * * @since 0.0.1 */ available: boolean;
/** * Whether proximity monitoring is currently enabled by the plugin. * * @since 0.0.1 */ enabled: boolean;
/** * Platform label returned by the native or web implementation. * * @since 0.0.1 */ platform: 'ios' | 'android' | 'web';}PluginVersionResult
플러그인 버전 결과Copy to clipboard
export interface PluginVersionResult { /** * Native plugin version string. * * @since 0.0.1 */ version: string;}실제 원천
이 페이지는 플러그인의. upstream에서 변경된 경우 다시 싱크를 실행하세요. src/definitions.tsAPI
시작부터 계속하기
시작부터 계속하기 섹션시작부터 계속하기 섹션을 사용 중이라면 시작부터 계속하기 API와 API 연동을 위해 capgo/capacitor-proximity를 사용합니다. capgo/capacitor-proximity를 사용하는 capgo의 원천 기능 API 개요 API의 구현 세부 사항 소개 소개의 구현 세부 사항 API 키 API 키의 구현 세부 사항에 대해 장치 __CAPGO_KEEP_0__ 키의 구현 세부 사항에 대해.