Hide the invite button and meeting information with swift

Description
Hi, how can I disable the invite button and also the meeting information such as the meeting ID, passcode, invite link?

I’m using swift and I have the code as follows

 let getservice = MobileRTC.shared().getMeetingService()
 if let service = getservice {
     service.delegate = self
     let paramDict =      [kMeetingParam_Username:kSDKUserName,kMeetingParam_MeetingNumber:meetingNo, kMeetingParam_MeetingPassword:"xxxx"]
     let response = service.joinMeeting(with: paramDict)
     print("onJoinMeeting, response: \(response)")
  }

extension ViewControllerZoom: MobileRTCMeetingServiceDelegate{
func onMeetingStateChange(_ state: MobileRTCMeetingState) {
print("(state)")
}
}

Thank you in advance for your help

Hey @dhernandez

Thanks for using the dev forum!

To hide the invite button you can use:
MobileRTC.shared().getMeetingSettings()?.meetingInviteHidden = true
before joining the meeting.

To hide the password you can use:
MobileRTC.shared().getMeetingSettings()?.meetingPasswordHidden = true

Unfortunately, there is no direct way to hide the meetingID currently. However, you can hide the whole top bar that contains the meetingID with:
MobileRTC.shared().getMeetingSettings()?.topBarHidden = true

You can also implement your own custom UI from scratch, where you would only include the info you want for the meeting.

Thanks!
Michael

Thank you very much for your help @Michael_Condon , I have managed to hide the invite button
.
I have one more question, is there a way to hide the invitation link?

If I cannot hide this invitation link and instead of that I have to hide the entire top bar, I was reviewing the documentation and wanted to know if I can put the option to leave the meeting in this menu:

Thank you in advance for your help

1 Like

Hey @dhernandez,

My mistake, I had read invite button :slight_smile: No you cannot hide that invite link specifically. You would have to implement a custom meeting UI.

Thanks!
Michael

hey @dhernandez, how can you managed to hide the invite button or zoom meeting details , please share your code or github link , TIA

how can you managed to hide the invite button or zoom meeting details , please share your code or github link , TIA

Hey @Unique_nick,

Thanks for using the dev forum.

To hide the invite button use this code:

Swift:
if let meetingSettings = MobileRTC.shared()?. getMeetingSettings {
meetingSettings.meetingInviteHidden = true
}
ObjectiveC:
[[MobileRTC sharedRTC] getMeetingSettings].meetingInviteHidden = YES;

You can only hide the meeting details by implementing a custom meeting UI or by hiding the top bar.
Swift:
if let meetingSettings = MobileRTC.shared()?. getMeetingSettings {
meetingSettings.topBarHidden = true
}
ObjectiveC:
[[MobileRTC sharedRTC] getMeetingSettings].topBarHidden = YES;

Thanks!
Michael