跳转到内容
搜索文档

RtkJoinLivestreamButton

最后更新 查看 MarkdownAgent 设置

一个用于加入或离开直播舞台的按钮。

方法

方法 参数 描述
activate meeting: RealtimeKitClient 将按钮绑定到会议状态

使用示例

基本用法

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

结合方法使用

val joinLivestreamButton = findViewById<RtkJoinLivestreamButton>(R.id.rtk_join_livestream)
joinLivestreamButton.activate(meeting)

这篇文档对您有帮助吗?