updateScreenCaptureRegion abstract method

Future<void> updateScreenCaptureRegion(
  1. Rectangle regionRect
)

Updates the screen capturing region.

Call this method after starting screen sharing or window sharing.

  • regionRect The relative location of the screen-share area to the screen or window. If you do not set this parameter, the SDK shares the whole screen or window. See Rectangle. If the specified region overruns the screen or window, the SDK shares only the region within it; if you set width or height as 0, the SDK shares the whole screen or window.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> updateScreenCaptureRegion(Rectangle regionRect);