Skip to content
AnswerWell geo Documentation

Research · 6 min read · Answerwell

Meeting UI Kit: Control Bar, Component Library, and Meeting Screens

How Cloudflare RealtimeKit UI Kit components connect to RealtimeKitClient, customize the control bar, and compose meeting screens.

This page summarizes Cloudflare RealtimeKit Humans UI Kit documentation: prebuilt meeting UI pieces (control bar, dialogs, grids, setup and end screens) that bind to a single RealtimeKitClient instance. Use it when you are building a custom app shell but want mic/camera toggles, participants, chat, breakout rooms, and screen share handled consistently across React, React Native, Angular, Android, and iOS.

RealtimeKitClient: connect UI components to the meeting

Section titled “RealtimeKitClient: connect UI components to the meeting”

Every interactive UI Kit control needs an active meeting client. The static initializer creates that instance from your server-issued token and API base URL.

The init method can be used to instantiate the RealtimeKitClient class. This returns an instance of RealtimeKitClient, which can be used to perform actions on the meeting.

— Cloudflare, RealtimeKitClient

Parameter Role
options.authToken Authorization token from your backend API
options.baseURI Base URL of the RealtimeKit API
options.defaults Default audio and video settings applied at join

Pass the returned client into components as meeting (web and React Native) or rtkClient / meeting on some iOS APIs. Without it, toggles cannot manage permissions, media state, or leave flows. The Component Library groups widgets by scope; most “toggle” and “screen” entries mark meeting as required.

Before the main meeting chrome appears, iOS can use RtkSetupViewController with meetingInfo (auth and media settings), an existing RealtimeKitClient, and a completion closure when setup finishes. Optional delegate receives join events. Pair this with screen components such as RtkSetupScreen on other platforms for a consistent pre-join preview.

Component library tiers: which piece to import

Section titled “Component library tiers: which piece to import”

The Component Library splits widgets into four layers. Pick the smallest layer that solves the task to avoid pulling entire meeting layouts into a minimal UI.

Basic components: labels, device pickers, and chrome

Section titled “Basic components: labels, device pickers, and chrome”

Basic building blocks include RtkAvatar, RtkAudioVisualizer, RtkButton, RtkClock, RtkHeader, RtkLogo, RtkMeetingTitle, RtkRecordingIndicator, RtkSpinner, RtkSwitch, RtkTooltip, and device selectors (RtkSpeakerSelector, RtkMicrophoneSelector, RtkCameraSelector). Android selectors such as RtkAudioDeviceSelector and RtkVideoDeviceSelector accept optional rtk_ds_label (defaults Audio / Video).

UI components: control bar, dialogs, and tiles

Section titled “UI components: control bar, dialogs, and tiles”

Interactive controls include RtkControlbar, RtkControlbarButton, RtkDialog, RtkMenu, RtkParticipantTile, and RtkNotification. Notifications accept a notification object (id, message, image, duration, button) and optional onRtkNotificationDismiss. On iOS, RtkNotificationConfig documents per-instance playSound and showToast defaults (both default to true).

Composite components: chat, grid, breakout rooms, and settings

Section titled “Composite components: chat, grid, breakout rooms, and settings”

Feature bundles combine multiple elements: RtkChat, RtkGrid, RtkParticipants, RtkScreenshareView, RtkSettings with RtkSettingsAudio and RtkSettingsVideo, breakout room managers (RtkBreakoutRoomManager, RtkBreakoutRoomsManager), and debugger panels. RtkScreenshareView requires both participant and meeting, with layout options such as nameTagPosition and hideFullScreenButton.

Full-screen views cover lifecycle states: RtkIdleScreen, RtkWaitingScreen, RtkSetupScreen, RtkMeeting, RtkEndedScreen. The all-in-one RtkMeeting screen exposes showSetupScreen (default true), applyDesignSystem, iconPackUrl, and iOSScreenshareEnabled (false by default; needs extra native setup).

Control bar: default bar versus custom buttons

Section titled “Control bar: default bar versus custom buttons”

The control bar is the bottom (or tab) strip for mic, camera, screen share, leave, and overflow actions.

From Add Custom Controlbar, higher-level bar pieces include:

Component Required prop Behavior
RtkMicToggle meeting Microphone toggle with permission handling
RtkCameraToggle meeting Camera toggle with permission handling
RtkScreenShareToggle meeting Screen share toggle
RtkMoreToggle meeting “More” menu with notification badge
RtkLeaveButton — Leave/end with confirmation dialog
RtkControlbarButton — Base button for custom actions

The full RtkControlbar accepts meeting, optional config, size, variant (boxed | solid), iconPack, states, and t for i18n.

Control bar button classes (activate with client)

Section titled “Control bar button classes (activate with client)”

Lower-level buttons are activated with RealtimeKitClient rather than the meeting prop name:

Component Activate with Description
RtkMicToggleButton RealtimeKitClient Microphone toggle with state management
RtkCameraToggleButton RealtimeKitClient Camera toggle with state management
RtkLeaveButton RealtimeKitClient Leave/end with confirmation
RtkMoreToggleButton RealtimeKitClient “More” menu button
RtkControlBarButton — Base class for custom buttons

Use composite toggles when you want permission handling wired in; use client-activated buttons when you assemble a fully custom bar layout.

iOS RtkControlBar and RtkMeetingControlBar require meeting, a delegate (RtkTabBarDelegate), and presentingViewController for modals. Optional appearance, settingViewControllerCompletion, and onLeaveMeetingCompletion run when settings dismiss or the participant leaves. Specialized bar buttons—such as RtkAudioButtonControlBar, RtkEndMeetingControlBarButton (needs alertViewController), and RtkMoreButtonControlBar—add targeted actions with their own presentation hooks.

To replace the stock meeting chrome, implement MeetingViewControllerDataSource:

Method Returns Purpose
getTopbar(viewController:) RtkMeetingHeaderView? Custom header
getMiddleView(viewController:) UIView? Content between header and control bar
getBottomTabbar(viewController:) RtkMeetingControlBar? Custom control bar

Supply a header built with RtkMeetingHeaderView (meeting required) when you need branded top chrome with RtkMeetingTitleLabel or RtkParticipantCountView.

Dialog manager: settings, leave, permissions, and breakout UI

Section titled “Dialog manager: settings, leave, permissions, and breakout UI”

Modal flows are centralized so individual buttons do not each implement presentation logic.

A component which handles all dialog elements in a component such as: rtk-settings, rtk-leave-meeting, rtk-permissions-message, rtk-image-viewer, rtk-breakout-rooms-manager This components depends on the values from states object.

— Cloudflare, rtk-dialog-manager (Core)

The same description appears for Angular and React. On React Native, RtkDialogManager takes meeting, optional config, iconPack, size, states, t, and onRtkStateUpdate when UI state changes. Pair with RtkDialog when you need a standalone modal (open, onRtkDialogClose, children). Leave flows also exist as RtkLeaveMeeting and iOS RtkLeaveDialog.

Shared props: size, icons, i18n, and layout variants

Section titled “Shared props: size, icons, i18n, and layout variants”

Many React Native controls share optional size (lg | md | sm | xl), iconPack, variant (button | horizontal on several toggles), and t (RtkI18n). Examples: RtkMicToggle, RtkChatToggle, RtkPollsToggle (here states is required). RtkLogo can load logoUrl and style without requiring meeting. For webinar or live streaming UI, see RtkLiveStreamToggle, RtkWebinarStageToggle, and iOS RtkStageActionButtonControlBar with buttonState tied to WebinarStageStatus.

Plugin and screen-share tabs on iOS use RtkActiveTabSelectorView with a buttons array of RtkPluginScreenShareTabButton entries (image required; title and id optional), inside RtkPluginsView.

  • Missing meeting on toggles — RtkCameraToggle, RtkScreenShareToggle, and similar widgets require RealtimeKitClient; silent failures often trace to an uninitialized client.
  • iOS bar without presentingViewController — Settings and leave confirmations need a view controller; see RtkControlBar.
  • Dialogs without states — rtk-dialog-manager explicitly depends on states; mount the manager once near the meeting root.
  • Mixing button tiers — Client-activated RtkMicToggleButton vs prop-driven RtkMicToggle serve different composition patterns; see Add Custom Controlbar.
  • iOS screen share flag only — Setting iOSScreenshareEnabled on RtkMeeting is not enough; documentation notes additional native setup.
  1. Create a client with RealtimeKitClient using authToken, baseURI, and defaults per the RealtimeKitClient reference, then join a test meeting from your backend.

  2. Mount one composite control (for example RtkMicToggle or RtkControlbar) and confirm the meeting prop points at that client instance.

  3. On iOS, open settings and leave from the bar and verify modals appear—if not, check delegate, presentingViewController, and alertViewController on the relevant RtkMeetingControlBar or end-meeting button docs.

  4. Open each dialog type (settings, permissions, breakout manager) through RtkDialogManager and confirm states updates when toggling RtkMoreToggle or related controls.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the official docs or your integration behaves differently, email yimasynthetic@gmail.com with the page URL and the exact sentence or API detail you are questioning.