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-shake`
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/shake/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.
설치
설치 제목bun add @capgo/capacitor-shakebunx cap syncimport
import 제목import { CapacitorShake } from '@capgo/capacitor-shake';API 개요
API 개요 제목addListener
addListener__CAPGO_KEEP_0__ 이벤트를 감지하기 위해 기기를 흔들어보세요.
__CAPGO_KEEP_0__ 이벤트를 감지할 수 있도록 등록하는 리스너입니다. 기기 가속도계를 사용하여 흔들기 패턴을 감지합니다.
import { CapacitorShake } from '@capgo/capacitor-shake';
const listener = await CapacitorShake.addListener('shake', () => { console.log('Shake detected!');});
// To remove the listener:await listener.remove();getPluginVersion
getPluginVersionCapacitor 네이티브 플러그인 버전을 가져오세요.
__CAPGO_KEEP_0__ 플러그인의 현재 버전을 반환합니다.
import { CapacitorShake } from '@capgo/capacitor-shake';
const { version } = await CapacitorShake.getPluginVersion();console.log('Plugin version:', version);Source Of Truth
__CAPGO_KEEP_0__ 페이지는 플러그인의. 업스트림에서 __CAPGO_KEEP_0__가 변경되면 다시 싱크를 실행하세요. src/definitions.tsAPI
Getting Started에서 계속 진행하세요
Getting Started에서 계속 진행하는 섹션입니다__CAPGO_KEEP_0__을 사용 중이라면 Getting Started API을 사용하여 대시보드와 API 연산을 계획하고 싶다면 capgo/capacitor-shake을 @capgo/capacitor-shake으로 연결하세요 Using @capgo/capacitor-shake에서 native capability을 사용하기 위해 API Overview API Overview에서 구현 세부 정보를 확인하세요 Introduction Introduction에서 구현 세부 정보를 확인하세요 API Keys API 키의 구현 세부 사항에 대해, 기기 __CAPGO_KEEP_0__ 키의 구현 세부 사항에 대해.