subscribeWhiteboard method

  1. @override
Future<String> subscribeWhiteboard(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Subscribe to the whiteboard.
x the x coordinate of the whiteboard.
y the y coordinate of the whiteboard.
width the width of the whiteboard.
height the height of the whiteboard.
Return ZoomVideoSDKError_Success if the function succeeds. Otherwise, this function returns an error.

Implementation

@override
Future<String> subscribeWhiteboard(num x, num y, num width, num height) async {
  var params = <String, dynamic>{};
  params.putIfAbsent("x", () => x);
  params.putIfAbsent("y", () => y);
  params.putIfAbsent("width", () => width);
  params.putIfAbsent("height", () => height);

  return await methodChannel
      .invokeMethod<String>('subscribeWhiteboard', params)
      .then<String>((String? value) => value ?? "");
}