跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

RtkParticipantCountView

最后更新 查看 MarkdownAgent 设置

显示会议中当前参与者人数的文本视图。当参与者人数更改时,它会自动更新。

方法

方法 参数 描述
activate meeting: RealtimeKitClient 将视图绑定(binding)至会议状态
applyDesignTokens designTokens: RtkDesignTokens 应用自定义设计令牌(design tokens)以进行主题定制

使用示例

基本用法

<com.cloudflare.realtimekit.ui.view.RtkParticipantCountView
    android:id="@+id/rtk_participant_count"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

配合方法使用

val countView = findViewById<RtkParticipantCountView>(R.id.rtk_participant_count)
countView.activate(meeting)

这篇文档对您有帮助吗?