ガイド
ホームインディケーターに関するチュートリアル
@capgo/capacitor-home-indicatorを使用
Capacitorホームインディケーター プラグインは、iOSデバイスのホームインディケーター表示の可視性を制御します。ホームインディケーターは、物理ホームボタンが付いていないiOSデバイスの下部の水平バーです。
Install
bun add @capgo/capacitor-home-indicator
bunx cap sync
What This Plugin Exposes
hide- Hide the home indicator at the bottom of the screen.show- Show the home indicator at the bottom of the screen.isHidden- Check whether the home indicator is currently hidden.
Example Usage
hide
Hide the home indicator at the bottom of the screen.
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.hide();
show
Show the home indicator at the bottom of the screen.
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.show();
isHidden
Check whether the home indicator is currently hidden.
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');
}
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-home-indicator/
- ドキュメント: /docs/plugins/home-indicator/
「@capgo/capacitor-home-indicator」を使用し続ける
「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-home-indicator」を使用している場合 「@capgo/capacitor-home-indicator」を使用して @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-home-indicatorを接続して @capgo/capacitor-home-indicatorの実装詳細については@capgo/capacitor-home-indicatorを参照してください for the implementation detail in @capgo/capacitor-home-indicator, Getting Startedの実装詳細については @__CAPGO_KEEP_0__ プラグイン ディレクトリ @Capgo プラグイン ディレクトリの製品ワークフローについては @Capgo プラグイン (@__CAPGO_KEEP_1__) Capacitor Plugins by Capgo Capacitor プラグインの実装詳細については、Capgo で確認してください。 プラグインの追加または更新 __CAPGO_KEEP_0__ プラグインの実装詳細については、プラグインの追加または更新で確認してください。