Mulai
Salin prompt pengaturan dengan langkah instalasi dan panduan markdown lengkap untuk plugin ini.
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.
Bagian berjudul “Instal”
Copy untuk AIbun add @capgo/capacitor-realtimekitbunx cap syncimport { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';API Ringkasan
Bagian berjudul “API Ringkasan”initialize
Bagian berjudul “inisialisasi”Menginisialisasi plugin RealtimeKit sebelum menggunakan metode lain.
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.initialize();startMeeting
Bagian berjudul “mulaiRapat”Mulai rapat menggunakan antarmuka bawaan. Hanya tersedia pada Android dan iOS.
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.startMeeting({ authToken: 'your-auth-token', enableAudio: true, enableVideo: true,});Referensi Tipe
Bagian berjudul “Referensi Tipe”StartMeetingOptions
Bagian berjudul “StartMeetingOptions”Opsi pengaturan untuk memulai pertemuan.
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;}Sumber Kebenaran
Bagian berjudul “Sumber Kebenaran”Halaman ini dihasilkan dari plugin’s src/definitions.tsRe-run sync ketika publik API berubah di atas