Mulai Berlatih
Copas prompt pengaturan dengan langkah instalasi dan panduan markdown lengkap untuk plugin ini.
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.
Pasang
Bagian berjudul “Pasang”bun add @capgo/capacitor-screen-recorderbunx cap syncimport { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API Ringkasan
Bagian berjudul “API Ringkasan”Mulai merekam layar perangkat dan merekam suara secara opsional. Pengguna akan diminta untuk memberikan izin merekam layar jika belum pernah memberikan izin. Pada iOS, UI merekam layar sistem akan ditampilkan. Pada Android, merekam layar akan dimulai setelah izin diberikan.
Mulai merekam layar perangkat.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audioawait ScreenRecorder.start();
// Start recording with audioawait ScreenRecorder.start({ recordAudio: true });Berhenti merekam layar saat ini.
Menghentikan merekam layar aktif dan menyimpan video ke galeri kamera perangkat atau galeri. Pada iOS, sistem akan menampilkan pratinjau rekaman. Pada Android, video disimpan langsung ke galeri.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');Sumber Kebenaran
Judul bagian “Sumber Kebenaran”Halaman ini dihasilkan dari plugin’s src/definitions.tsRe-run sinkronisasi ketika API publik berubah secara upstream.