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-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.
インストール
「インストール」のセクションAI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。
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-screen-recorder` plugin in my project.Manual セットアップを使用する場合は、次のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-screen-recorderbunx cap syncインポート
「インポート」のセクションimport { ScreenRecorder } from '@capgo/capacitor-screen-recorder';API の概要
APIの概要start
__CAPGO_KEEP_0__の開始デバイス画面の録画を開始します。
画面録画を開始します。オプションで音声録音も可能です。ユーザーは画面録画の許可を求められます。iOSの場合、システムの録画UIが表示されます。Androidの場合、許可が与えられた後すぐに録画が開始されます。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
// Start recording without audioawait ScreenRecorder.start();
// Start recording with audioawait ScreenRecorder.start({ recordAudio: true });現在の画面録画を停止します。
現在の画面録画を停止し、デバイスのカメラロールまたはギャラリーに保存します。iOSの場合、システムは録画のプレビューを表示します。Androidの場合、直接ギャラリーに保存されます。
import { ScreenRecorder } from '@capgo/capacitor-screen-recorder';
await ScreenRecorder.stop();console.log('Recording saved to gallery');このページはプラグインから生成されています。 src/definitions.ts. upstream の API が変更されたときに、再度 sync を実行してください。
Getting Started から続けてください
Getting Started から続けてくださいCapgo を使用している場合 Getting Started native メディアとインターフェイスの動作を計画するには、Capacitor を接続してください @capgo/capacitor-screen-recorder を使用して native の機能を実装する @capgo/capacitor-screen-recorder を使用して native の機能を実装する @capgo/capacitor-live-activities を使用して native の機能を実装する @capgo/capacitor-live-activities を使用して native の機能を実装する @capgo/capacitor-live-activities @capgo/capacitor-live-activities @capgo/capacitor-video-player @capgo/capacitor-video-player @capgo/capacitor-video-player @capgo/capacitor-video-player