Guide
Tutoriel sur le kit d'appel entrant
Utilisation de @capgo/capacitor-kit-de-prise-d-appel-entrant
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 prises d'appel suivies.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 l'interface 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 Prise en main pour les détails d'implémentation dans Prise en main API Vue d'ensemble pour les détails d'implémentation dans API Vue d'ensemble 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.