Allez directement au contenu principal
Retour aux plugins
@capgo/capacitor-kit-appel-entrant
Tutorial
@capgo/capacitor-kit-appel-entrant

Kit d'appel entrant

Présentez une interface utilisateur native d'appel entrant avec iOS CallKit et Android notifications à écran plein

Guide

Tutoriel sur le Kit d'appel entrant

Utilisation de @capgo/capacitor-kit-appel-entrant

Capacitor API pour la présentation d'une surface d'appel entrant native.

Installer

bun add @capgo/capacitor-incoming-call-kit
bunx cap sync

Ce que ce plugin expose

  • showIncomingCall - Affiche l'interface utilisateur d'appel entrant native.
  • endCall - Termine une appelle spécifique suivie.
  • endAllCalls - Termine toutes les appels suivis.
  • getActiveCalls - Retourne les appels actuellement suivis.

Exemple d'utilisation

showIncomingCall

Affiche l'interface utilisateur native des appels entrants.

import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';

await IncomingCallKit.showIncomingCall({} as ShowIncomingCallOptions);

endCall

Termine un appel spécifique suivi.

import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';

await IncomingCallKit.endCall({} as EndCallOptions);

endAllCalls

Termine tous les appels suivis.

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

Continuez à partir de l'utilisation de @capgo/capacitor-kit-de-callbacks-entrant

Si vous utilisez L'utilisation de @capgo/capacitor-kit-de-callbacks-entrant pour planifier le tableau de bord et les opérations API, connectez-le à @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 API Présentation pour les détails d'implémentation dans API Présentation 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.