Guide
Tutoriel sur le kit d'appel entrant
Utilisation de @capgo/capacitor-incoming-call-kit
Capacitor API pour présenter une surface de prise d'appel native.
Installer
bun add @capgo/capacitor-incoming-call-kit
bunx cap sync
Ce que ce plugin expose
showIncomingCall- Affiche l'interface utilisateur de prise d'appel native.endCall- Termine une prise d'appel spécifique suivie.endAllCalls- Termine toutes les appels suivis.getActiveCalls- Retourne les appels suivis actuellement.
Exemple d'utilisation
showIncomingCall
- Affiche l'interface utilisateur de prise d'appel native.
import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';
await IncomingCallKit.showIncomingCall({} as ShowIncomingCallOptions);
endCall
- Termine une prise d'appel spécifique suivie.
import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';
await IncomingCallKit.endCall({} as EndCallOptions);
endAllCalls
Se termine chaque appel suivi.
import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';
await IncomingCallKit.endAllCalls();
getActiveCalls
Retourne les appels actuellement suivis.
import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';
await IncomingCallKit.getActiveCalls();
Référence complète
- GitHub : https://github.com/Cap-go/capacitor-kit-appel-entrant/
- Documentation : /docs/plugins/kit-appel-entrant/
Continuez à partir de l'utilisation de @capgo/capacitor-kit-appel-entrant
Si vous utilisez L'utilisation de @capgo/capacitor-kit-appel-entrant pour planifier le tableau de bord et les opérations API, connectez-l’avec @capgo/capacitor-kit-appel-entrant pour les détails d'implémentation dans @capgo/capacitor-kit-appel-entrant Démarrage pour les détails d'implémentation dans Démarrage, Vue d'ensemble de API pour les détails d'implémentation dans Vue d'ensemble de API, Introduction pour les détails d'implémentation dans Introduction, et API Clés pour les détails d'implémentation dans API Clés.