← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / ios
RtkSetupViewController
Pre-meeting setup screen view controller. Provides video preview, audio and video toggles, and name entry before joining a meeting.
Initializer parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
meetingInfo |
RtkMeetingInfo |
✅ | - | Meeting configuration with auth token and media settings |
meeting |
RealtimeKitClient |
✅ | - | The RealtimeKit client instance |
completion |
@escaping () -> Void |
✅ | - | Closure called when setup completes |
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
delegate |
SetupViewControllerDelegate? |
❌ | nil |
Delegate notified when the participant joins the meeting |
Usage Examples
Basic Usage
import RealtimeKitUI
let setupVC = RtkSetupViewController(
meetingInfo: meetingInfo,
meeting: rtkClient,
completion: {
print("Setup complete")
}
)
self.present(setupVC, animated: true)With delegate
import RealtimeKitUI
class ViewController: UIViewController, SetupViewControllerDelegate {
func showSetupScreen() {
let setupVC = RtkSetupViewController(
meetingInfo: meetingInfo,
meeting: rtkClient,
completion: {
self.dismiss(animated: true)
}
)
setupVC.delegate = self
self.present(setupVC, animated: true)
}
}