updateScreenCaptureRegion abstract method

Future<void> updateScreenCaptureRegion(
  1. Rectangle regionRect
)

Updates the region for screen capture.

Call this method after screen or window sharing is enabled.

  • regionRect The position of the region to be shared relative to the entire screen or window. If not specified, the entire screen or window is shared. See Rectangle. If the set region exceeds the screen or window boundary, only the content within the screen or window is shared; if width or height is set to 0, the entire screen or window is shared.

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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> updateScreenCaptureRegion(Rectangle regionRect);