joinMeeting method

  1. @override
Future<bool> joinMeeting(
  1. ZoomMeetingOptions options
)
override

The event channel used to interact with the native platform joinMeeting function

Implementation

@override
Future<bool> joinMeeting(ZoomMeetingOptions options) async {
  var optionMap = <String, String?>{};
  optionMap.putIfAbsent("userId", () => options.userId);
  optionMap.putIfAbsent("meetingId", () => options.meetingId);
  optionMap.putIfAbsent("meetingPassword", () => options.meetingPassword);
  optionMap.putIfAbsent("disableDialIn", () => options.disableDialIn);
  optionMap.putIfAbsent("disableDrive", () => options.disableDrive);
  optionMap.putIfAbsent("disableInvite", () => options.disableInvite);
  optionMap.putIfAbsent("disableShare", () => options.disableShare);
  optionMap.putIfAbsent("disableTitlebar", () => options.disableTitlebar);
  optionMap.putIfAbsent("noDisconnectAudio", () => options.noDisconnectAudio);
  optionMap.putIfAbsent("viewOptions", () => options.viewOptions);
  optionMap.putIfAbsent("noAudio", () => options.noAudio);

  return await channel
      .invokeMethod<bool>('join', optionMap)
      .then<bool>((bool? value) => value ?? false);
}