시작하기
이 플러그인 설치 단계와 전체 마크다운 가이드를 포함한 설정 프롬프트 복사하기.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-home-indicator`, `@capgo/home-indicator`
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/home-indicator/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.
설치
설치란bun add @capgo/capacitor-home-indicatorbunx cap syncImport
Import 섹션import { HomeIndicator } from '@capgo/capacitor-home-indicator';API 개요
API 개요 섹션hide
숨기기스크린 하단의 홈 인디케이터를 숨깁니다.
iOS에서만 사용할 수 있습니다. Android나 웹에서는 영향을 미치지 않습니다.
클립보드 복사
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.hide();Section titled “show”
이것은 iOS 홈 인디케이터의 기본 동작입니다. 사용자는 항상 홈 인디케이터를 볼 수 있습니다.
iOS 전용. Android나 웹에서는 효과가 없습니다.
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.show();isHidden
isHidden홈 인디케이터가 현재 숨겨져 있는지 확인합니다.
iOS 홈 인디케이터의 현재 가시성 상태를 반환합니다.
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
const { hidden } = await HomeIndicator.isHidden();if (hidden) { console.log('Home indicator is hidden');} else { console.log('Home indicator is visible');}진실의 근원
Source Of Truth이 페이지는 플러그인의 src/definitions.ts. upstream에서 pubic API이 변경될 때 다시 싱크를 실행하세요.