← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / android
RtkLivestreamViewerCount
Zobrazuje aktuální počet diváků živého vysílání.
Metody
| Metoda | Parametry | Popis |
|---|---|---|
refresh |
meeting: RealtimeKitClient |
Aktualizujte počet diváků podle aktuálního stavu schůzky |
Příklady použití
Základní použití
<com.cloudflare.realtimekit.ui.view.RtkLivestreamViewerCount
android:id="@+id/rtk_viewer_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />S metodami
val viewerCount = findViewById<RtkLivestreamViewerCount>(R.id.rtk_viewer_count)
viewerCount.refresh(meeting)