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.
설치
설치 섹션AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. 다음 명령어를 사용하여 AI 도구에 Capgo 기능을 추가하세요:
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-privacy-screen` plugin in my project.Manual Setup을 사용하는 경우, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래에 플랫폼별로 설명된 지침을 따르세요:
-
플러그인 설치
터미널 창 bun add @capgo/capacitor-privacy-screen -
자연 플랫폼을 동기화하세요
터미널 창 bunx cap sync -
플랫폼 동작을 검토
- 를 읽으십시오. iOS에 대한 앱 switcher 동작에 대한
- 를 읽으십시오. Android에 대한 스크린샷 및 녹화 동작에 대한
기본 동작
기본 동작자막입니다. 기본 동작
- On Android, secure mode는 스크린샷, 스크린 녹화 캡처 및 최근 앱 프리뷰를 차단합니다.
- On iOS, 플러그인은 앱 Switcher 스냅샷 생성 시 앱을 숨깁니다.
- On 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);임시로 사용하지 않아야 하는 경우
임시로 사용하지 않아야 하는 경우사용 disable() 현재 화면이 시스템 프리뷰에서 유지되거나 사용자가 캡처할 수 있도록 하려면:
- 계정 인증 단계가 지원을 위해 스크린샷이 필요할 때
- 결제 또는 신원 제공자 흐름이 앱 Switcher 프리뷰가 표시되도록 필요할 때
- 통제된 디버깅 세션을 신뢰할 수 있는 장치에서 수행합니다.
__CAPGO_KEEP_0__으로 즉시 보호를 복원하세요. enable().
Getting Started에서 계속하세요.
Getting Started에서 계속하세요__CAPGO_KEEP_0__을 사용 중이라면 Getting Started 보안 및 규정 준수 계획을 위해 __CAPGO_KEEP_0__을 연결하세요. @capgo/capacitor-privacy-screen을 사용하여 @capgo/capacitor-privacy-screen의 네이티브 기능을 사용하여 __CAPGO_KEEP_0__ __CAPGO_KEEP_0__의 구현 세부 정보를 위해 __CAPGO_KEEP_0__ 구현 세부 사항에 대한 정보 Capgo 보안 스캐너 Capgo 보안 스캐너의 제품 워크플로에 대한 Capgo 보안 Capgo 보안의 제품 워크플로에 대한