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-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.
インストール
「インストール」のセクションCapgoのAIアシストセットアップを使用してプラグインをインストールできます。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-home-indicator` plugin in my project.Manual Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-home-indicatorbunx cap syncインポート
「インポート」import { HomeIndicator } from '@capgo/capacitor-home-indicator';API オーバービュー
「API オーバービュー」hide
「非表示」画面下部のホームインジケータを非表示にする。
iOS用の非表示機能です。AndroidやWebでは効果しません。
クリップボードにコピー
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.hide();iOSのみ。AndroidやWebでは効果しません。
iOSのホームインディケータの表示をデフォルトに戻します。ユーザーに常に表示されます。これがデフォルトの動作です。
iOSのみ。AndroidやWebには影響しません。
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');}真実の源
「真実の源」セクションこのページはプラグインの src/definitions.tsパブリックAPIがアップストリームで変更されたときに、再度Syncを実行してください。
「Getting Started」から続けてください
セクションのタイトル “始めてから続けて”あなたが「{0}」を使用している場合 「{0}」 to plan dashboard and API operations, connect it with Using @capgo/capacitor-home-indicator for the native capability in Using @capgo/capacitor-home-indicator, API Overview for the implementation detail in API Overview, 導入 導入 API Keys for the implementation detail in API Keys, and デバイス デバイスの実装詳細について