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-privacy-screen`
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/privacy-screen/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.
Installation
Section titled “Installation”You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-pluginsThen use the following prompt:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-privacy-screen` plugin in my project.If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:
-
Install the plugin
Terminal window bun add @capgo/capacitor-privacy-screen -
Sync native platforms
ターミナルウィンドウ bunx cap sync -
プラットフォームの動作を確認
スクリーンショットとレコーディングの動作についての
」デフォルトの動作のセクションのタイトルは「デフォルトの動作」です。
- Androidでは、セキュアモードはスクリーンショット、スクリーンレコーディングキャプチャ、そして最近のアプリのプレビューをブロックします。
- iOSでは、プラグインはアプリSwitcherのスナップショット生成中にアプリを非表示にします。
- Webでは、プラグインはAPIの偶数の場合にのみ、メモリ内に有効なフラグを保持します。
基本的な使用方法
基本的な使用方法import { PrivacyScreen } from '@capgo/capacitor-privacy-screen';
await PrivacyScreen.disable();
// Run a flow where screenshots or previews are temporarily allowed.
await PrivacyScreen.enable();
const { enabled } = await PrivacyScreen.isEnabled();console.log('Privacy screen enabled:', enabled);システムプレビューまたはユーザーによってキャプチャされる必要がある場合にのみ使用してください。
アカウント検証のステップがサポートにスクリーンショットが必要な場合など、支払いまたはアイデンティティプロバイダーフローの場合に、表示されるアプリSwitcherのプレビューが必要です。 disable() アプリSwitcherのプレビューが表示される必要がある場合にのみ使用してください。
- アプリSwitcherのプレビューが表示される必要がある場合にのみ使用してください。
- アプリSwitcherのプレビューが表示される必要がある場合にのみ使用してください。
- 信頼できるデバイス上の制御されたデバッグ セッション
保護を即座に復元するには enable().
Getting Startedから続けてください
Getting Startedから続けてくださいCapacitorを使用している場合 Getting Started セキュリティとコンプライアンスの計画に使用するには、Capacitorを @capgo/capacitor-privacy-screen @capgo/capacitor-privacy-screenのネイティブ機能 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-privacy-screenの実装詳細 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-privacy-screenの暗号化 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-privacy-screenのコンプライアンス Complianceの実装詳細について Capgo セキュリティ スキャナー Capgo セキュリティ スキャナーの製品ワークフローについて、 Capgo セキュリティ Capgo セキュリティの製品ワークフローについて、