Skip to content

RtkLivestreamViewerCount

Last updated View as MarkdownAgent setup

Displays the current viewer count for a livestream.

Methods

Method Parameters Description
refresh meeting: RealtimeKitClient Update the viewer count based on the current meeting state

Usage Examples

Basic Usage

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

With Methods

val viewerCount = findViewById<RtkLivestreamViewerCount>(R.id.rtk_viewer_count)
viewerCount.refresh(meeting)

Was this helpful?