Description
How to hide the Invite link from the top menu.
Screenshots
Screenshot added
Hey @dayal,
Thanks for using the dev forum!
That link cannot be hidden without using a Custom Meeting UI.
Thanks!
Michael
Hi Michale…i manged to disable click to that Topbar by bringing a view over it…Hope this will help some people…
Declared a View
let zoomMaskView = UIView()
In view did load I put this…
if let navigationController1 = UIApplication.shared.windows.first?.rootViewController as? UINavigationController {
MobileRTC.shared().setMobileRTCRootController(navigationController1)
}
window = UIApplication.shared.windows.first!
and call this delegate
func onMeetingStateChange(_ state: MobileRTCMeetingState) {
switch state {
case .connecting:
print("Meeting Connecting")
case .disconnecting:
print("Meeting Disconnected")
self.zoomMaskView.removeFromSuperview()
case .ended:
print("Meeting Ended")
self.zoomMaskView.removeFromSuperview()
case .failed:
print("Meeting Failed")
self.zoomMaskView.removeFromSuperview()
case .idle:
print("Meeting idle")
case .inMeeting:
print("Meeting InMeeting")
let firstFrame = CGRect(x: 0, y: 0, width: 200, height: 75)
zoomMaskView.frame = firstFrame
zoomMaskView.center = CGPoint(x: window!.center.x, y: 44)
zoomMaskView.backgroundColor = .red
window!.addSubview(zoomMaskView)
default:
print("Current meeting state: \(state.rawValue)")
}
print("Current meeting state: \(state)")
}
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.