내용으로 건너뛰기

Getting Started

GitHub

AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. 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-shake` plugin in my project.

만약 Manual Setup을 선호한다면, 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:

터미널 창
bun add @capgo/capacitor-shake
bunx cap sync
import { CapacitorShake } from '@capgo/capacitor-shake';

addListener

addListener

__CAPGO_KEEP_0__ 이벤트를 listens for shake event on the device.

addListener

import { CapacitorShake } from '@capgo/capacitor-shake';
const listener = await CapacitorShake.addListener('shake', () => {
console.log('Shake detected!');
});
// To remove the listener:
await listener.remove();

Get the native Capacitor plugin version.

getPluginVersion

import { CapacitorShake } from '@capgo/capacitor-shake';
const { version } = await CapacitorShake.getPluginVersion();
console.log('Plugin version:', version);

Returns the current version of the native plugin implementation.

Copy to clipboard

Source Of Truth src/definitions.tsAPI의 Source Of Truth입니다.

Getting Started에서 계속 진행하세요

Getting Started에서 계속 진행하는 방법

Capgo를 사용 중이라면 Getting Started API dashboard와 연산을 계획하고 싶다면 capgo을 사용하여 @capgo/capacitor-shake capgo을 사용하여 @capgo/capacitor-shake의 네이티브 기능을 구현하는 방법 API 개요 API 개요에서 구현 세부 정보 소개 소개에서 구현 세부 정보 API 키 API 키의 구현 세부 사항에 대해 장치 __CAPGO_KEEP_0__ 키의 구현 세부 사항에 대해.