The main meeting screen view controller.
Displays the participant grid, plugins, screen share, header, and control bar.
MeetingViewControllerDataSource protocol
Implement this protocol to provide custom UI sections within the meeting screen.
import RealtimeKitUI
let meetingVC = MeetingViewController (
meeting : rtkClient,
completion : {
self . dismiss ( animated : true )
}
)
meetingVC.modalPresentationStyle = .fullScreen
self . present (meetingVC, animated : true )
import RealtimeKitUI
class CustomDataSource : MeetingViewControllerDataSource {
func getTopbar ( viewController : MeetingViewController) -> RtkMeetingHeaderView ? {
return RtkMeetingHeaderView ( meeting : rtkClient)
}
func getMiddleView ( viewController : MeetingViewController) -> UIView ? {
return nil
}
func getBottomTabbar ( viewController : MeetingViewController) -> RtkMeetingControlBar ? {
return nil
}
}
let meetingVC = MeetingViewController (
meeting : rtkClient,
completion : {
self . dismiss ( animated : true )
}
)
meetingVC.dataSource = CustomDataSource ()
self . present (meetingVC, animated : true )