Démarrage
Copiez une commande 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-realtimekit`
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/realtimekit/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
Installationbun add @capgo/capacitor-realtimekitbunx cap syncImporter
Section intitulée « Importer »import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';API Vue d'ensemble
Section intitulée « API Vue d'ensemble »initialize
Section intitulée « initialiser »Initialise le plugin RealtimeKit avant d'utiliser d'autres méthodes.
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.initialize();startMeeting
Section intitulée « démarrerRéunion »Démarrer une réunion à l'aide de l'interface utilisateur intégrée. Disponible uniquement sur Android et iOS.
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.startMeeting({ authToken: 'your-auth-token', enableAudio: true, enableVideo: true,});Référence de type
Section intitulée « Référence de type »StartMeetingOptions
Section intitulée « Options de démarrage de réunion »Options de configuration pour démarrer une réunion.
export interface StartMeetingOptions { /** * Authentication token for the participant. * This token is required to join the Cloudflare Calls meeting. * * @since 7.0.0 */ authToken: string;
/** * Whether to join with audio enabled. * Default is true. * * @default true * @since 7.0.0 */ enableAudio?: boolean;
/** * Whether to join with video enabled. * Default is true. * * @default true * @since 7.0.0 */ enableVideo?: boolean;}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 the sync when the public API changes upstream.