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 デバイス デバイスの実装詳細について