시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드가 포함된 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-screen-recorder`
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/screen-recorder/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-screen-recorderbunx cap sync수입
수입import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API 개요
API 개요start
시작디바이스 화면 녹화 시작.
디바이스 화면 녹화를 시작합니다. optional 오디오 캡처가 가능합니다. 사용자는 화면 녹화 권한을 부여하지 않은 경우 권한을 부여하도록 유도됩니다. iOS에서 시스템 녹화 UI가 표시됩니다. Android에서 권한이 부여된 후 녹화가 시작됩니다.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audioawait ScreenRecorder.start();
// Start recording with audioawait ScreenRecorder.start({ recordAudio: true });stop
“정지” 제목현재 화면 녹화 중지.
활성화된 화면 녹화를 중지하고 비디오를 기기 내의 카메라 롤 또는 갤러리에 저장합니다. iOS에서 시스템은 녹화의 미리보기 화면을 표시하고 Android에서는 비디오를 직접 갤러리에 저장합니다.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');진실의 근원
“진실의 근원” 제목이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 동기화 하십시오.