Démarrage
Copiez un prompt de configuration avec les étapes d'installation et la guide Markdown complet pour ce plugin.
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.
Installer
Section intitulée « Installer »bun add @capgo/capacitor-screen-recorderbunx cap syncImporter
Section intitulée « Importer »import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API Vue d'ensemble
Section intitulée « API Vue d'ensemble »Commencez à enregistrer l'écran de l'appareil.
Démarre l'enregistrement de l'écran avec la capture audio facultative. L'utilisateur sera invité à accorder les autorisations d'enregistrement de l'écran si elles ne sont pas déjà accordées. Sur iOS, l'interface de l'enregistrement système sera affichée. Sur Android, l'enregistrement commence immédiatement après accord des autorisations.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audioawait ScreenRecorder.start();
// Start recording with audioawait ScreenRecorder.start({ recordAudio: true });Arrêtez l'enregistrement de l'écran en cours.
Arrête l'enregistrement actif et enregistrez le vidéo sur la galerie de l'appareil. Sur iOS, le système affichera une prévisualisation de l'enregistrement. Sur Android, la vidéo est enregistrée directement dans la galerie.
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');Source Of Truth
Section intitulée « Source Of Truth »Cette page est générée à partir du plugin src/definitions.tsRe-run the sync when the public API changes upstream.