Getting Started
Copiez un prompt de configuration avec les étapes d'installation et la guide markdown complète pour ce plugin.
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.
Installer
Sous-section intitulée « Installer »Vous pouvez utiliser notre configuration assistée par l'IA pour installer le plugin. Ajoutez les Capgo compétences à votre outil IA à l'aide de la commande suivante :
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-pluginsEnsuite, utilisez la prompt suivante :
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-home-indicator` plugin in my project.Si vous préférez la configuration manuelle, installez le plugin en exécutant les commandes suivantes et suivez les instructions spécifiques à la plateforme ci-dessous :
bun add @capgo/capacitor-home-indicatorbunx cap syncimport { HomeIndicator } from '@capgo/capacitor-home-indicator';API Vue d'ensemble
Section intitulée « API Vue d'ensemble »Cacher l'indicateur d'accueil en bas de l'écran.
Cacher l'indicateur d'accueil en bas de l'écran pour une expérience d'écran plein plus immersive. Les utilisateurs peuvent toujours faire glisser vers le haut pour accéder à l'accueil, mais l'indicateur ne sera pas visible avant qu'ils ne commencent la gestuelle.
Disponible uniquement sur iOS. Aucun effet sur Android ou web.
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.hide();Afficher l'indicateur d'accueil en bas de l'écran.
Cela restaure la visibilité par défaut de l'indicateur d'accueil iOS, ce qui le rend toujours visible à l'utilisateur. C'est le comportement par défaut.
Seulement disponible sur iOS. Aucun effet sur Android ou web.
import { HomeIndicator } from '@capgo/capacitor-home-indicator';
await HomeIndicator.show();isHidden
Section intitulée « isHidden »Vérifiez si l'indicateur d'accueil est actuellement caché.
Renvoie l'état de visibilité actuel de l'indicateur d'accueil 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 De Vérité
Section intitulée « Source De Vérité »Cette page est générée à partir du plugin's src/definitions.tsRe-run la synchronisation lorsque la publication API change en amont.
Continuez de Getting Started
Section intitulée « Continuez de l'Accueil »Si vous utilisez Accueil pour planifier votre tableau de bord et les opérations API Using @capgo/capacitor-home-indicator Utilisation de @capgo/capacitor-home-indicator pour la capacité native dans Utilisation de @API/__CAPGO_KEEP_1__-home-indicator API Vue d'ensemble pour le détail d'implémentation dans __CAPGO_KEEP_0__ Vue d'ensemble Introduction API Keys API Clés Appareils pour le détail d'implémentation dans Appareils.