Customize Invitation


Contents

1. Customize Invitation Template

2. Customize Invitation Contents

1. Customize Invitation Template

If you would like to customize invitation template, you can follow these steps:

  1. Enable the invitation template customization feature by implementing onClickedInviteButton method
- (void)onClickedInviteButton:(UIViewController*)parentVC
{
  InviteViewController *inviteVC = [[InviteViewController alloc] init];
  UINavigationController *nav = [[UINavigationController alloc]
  initWithRootViewController:inviteVC];
  nav.modalPresentationStyle = UIModalPresentationFormSheet;
  [parentVC presentViewController:nav animated:YES completion:NULL];
}
  1. Then you can get Meeting ID and Join Meeting URL like the following:
NSString *meetingID = [MobileRTCInviteHelper sharedInstance].meetingID;
NSString *meetingURL = [MobileRTCInviteHelper sharedInstance].joinMeetingURL;

2. Customize Invitation Contents

If you would like to enable/disable the invitation methods(SMS, Copy URL, Email), customize the content of the Invite by Message(SMS), Copy URL, and Invite by Email after a meeting has started, the upcoming snippet will be very helpful.

2.1 Enable/Disable invitation methods

//To Enable or Disable Copy URL
[MobileRTCInviteHelper sharedInstance].disableCopyURL = YES;
//To Enable or Disable Invite by Email
[MobileRTCInviteHelper sharedInstance].disableInviteEmail = YES;
//To Enable or Disable Invite by Message
[MobileRTCInviteHelper sharedInstance].disableInviteSMS = YES;

2.2 Customize invitation contents

if (state == MobileRTCMeetingState_InMeeting)
{
  //To customize the content of Invite by SMS
  NSString *meetingID = [[MobileRTCInviteHelper sharedInstance] meetingID];
  NSString *smsMessage = [NSString stringWithFormat:NSLocalizedString(@"Please join meeting with ID: %@", @""), meetingID];
  [[MobileRTCInviteHelper sharedInstance] setInviteSMS:smsMessage];
  
	//To customize the content of Copy URL
  NSString *joinURL = [[MobileRTCInviteHelper sharedInstance] joinMeetingURL];
  NSString *copyURLMsg = [NSString stringWithFormat:NSLocalizedString(@"MeetingURL: %@", @""), joinURL];
  [[MobileRTCInviteHelper sharedInstance] setInviteCopyURL:copyURLMsg];
  
	//To customize "Invite by Email"
  [MobileRTCInviteHelper sharedInstance].inviteEmailSubject = @"Invite by Email";
  [MobileRTCInviteHelper sharedInstance].inviteEmailContent = [NSString
  stringWithFormat:NSLocalizedString(@"Please join meeting with ID: %@", @""), meetingID];
}