startMeetingNormal method

  1. @override
Future<List> startMeetingNormal(
  1. ZoomMeetingOptions options
)
override

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

Implementation

@override
Future<List> startMeetingNormal(ZoomMeetingOptions options) async {
  var optionMap = new Map<String, String?>();
  optionMap.putIfAbsent("userId", () => options.userId);
  optionMap.putIfAbsent("userPassword", () => options.userPassword);
  optionMap.putIfAbsent("meetingId", () => options.meetingId);
  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("noAudio", () => options.noAudio);
  optionMap.putIfAbsent("viewOptions", () => options.viewOptions);

  return channel
      .invokeMethod<List>('startNormal', optionMap)
      .then<List>((List? value) => value ?? List.empty());
}