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
__CAPGO_KEEP_0__ importimport { CapacitorShake } from '@capgo/capacitor-shake';API 개요
API 개요addListener
__CAPGO_KEEP_0__ 추가__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
__CAPGO_KEEP_0__ 플러그인 버전 가져오기Capacitor 플러그인의 현재 버전을 반환합니다.
__CAPGO_KEEP_0__ 플러그인 버전을 가져옵니다.
import { CapacitorShake } from '@capgo/capacitor-shake';
const { version } = await CapacitorShake.getPluginVersion();console.log('Plugin version:', version);원본
원본이 페이지는 플러그인의 src/definitions.ts. 업스트림에서 API이 변경되면 다시 싱크를 실행하세요.
시작하기
시작하기이러한 기능을 사용 중이라면 시작하기 대시보드와 API를 계획하고 운영하기 위해 Using @capgo/capacitor-shake Using @capgo/capacitor-shake API 개요 API 개요에 대한 구현 세부 정보를 위한 소개 __CAPGO_KEEP_0__ 키에 대한 구현 세부 정보를 위한 API 키 API 키 및 장치에 대한 구현 세부 정보를 위한 장치 __CAPGO_KEEP_0__ 키에 대한 구현 세부 정보를 위한