__CAPGO_KEEP_0__ - 实时更新 __CAPGO_KEEP_1__ 应用程序

Getting Started

GitHub

您可以使用我们的 AI 助手设置来安装插件。将 Capgo 技能添加到您的 AI 工具中,使用以下命令:

终端窗口
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

然后使用以下提示:

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-realtimekit` plugin in my project.

如果您更喜欢手动设置,请按照以下命令安装插件并遵循以下平台特定的说明:

终端窗口
bun add @capgo/capacitor-realtimekit
bunx cap sync

导入

导入
import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';

API概述

API概述

initialize

初始化

初始化 RealtimeKit 插件,用于使用其他方法。

import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.initialize();

startMeeting

开始会议

使用内置 UI 开始会议。 仅在 Android 和 iOS 上可用。

import { CapacitorRealtimekit } from '@capgo/capacitor-realtimekit';
await CapacitorRealtimekit.startMeeting({
authToken: 'your-auth-token',
enableAudio: true,
enableVideo: true,
});

类型参考

类型参考

StartMeetingOptions

开始会议选项

开始会议的配置选项。

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;
}

真相来源

类型参考

此页面由插件生成。重新同步公共__CAPGO_KEEP_0__时,重新运行上游的同步。 src/definitions.ts. Re-run the sync when the public API changes upstream.

继续从开始

类型参考

如果您正在使用 开始使用 来规划仪表板和API操作,连接它 使用@capgo/capacitor-实时套件 使用@capgo/capacitor-实时套件 API概述 API概述 介绍 介绍 API密钥 API密钥 设备 了解设备的实现细节。