ScreenCaptureConfiguration

The configuration of the captured screen.

public class ScreenCaptureConfiguration
    {
        public bool isCaptureWindow;
        public long displayId;
        public Rectangle screenRect;
        public long windowId;

        public ScreenCaptureParameters @params;
        public Rectangle regionRect;

        public ScreenCaptureConfiguration()
        {
            this.isCaptureWindow = false;
            this.displayId = 0;
            this.windowId = 0;
        }

        public ScreenCaptureConfiguration(bool isCaptureWindow, long displayId, Rectangle screenRect, long windowId, ScreenCaptureParameters @params, Rectangle regionRect)
        {
            this.isCaptureWindow = isCaptureWindow;
            this.displayId = displayId;
            this.screenRect = screenRect;
            this.windowId = windowId;
            this.@params = @params;
            this.regionRect = regionRect;
        }
    }

Attributes

isCaptureWindow
Whether to capture the window on the screen:
  • true: Capture the window.
  • false: (Default) Capture the screen, not the window.
displayId
(macOS only) The display ID of the screen.
Attention: This parameter takes effect only when you want to capture the screen on macOS.
screenRect
(Windows only) The relative position of the shared screen to the virtual screen.
Attention: This parameter takes effect only when you want to capture the screen on Windows.
windowId
(For Windows and macOS only) Window ID.
Attention: This parameter takes effect only when you want to capture the window.
parameters
(For Windows and macOS only) The screen capture configuration. See ScreenCaptureParameters.
regionRect
(For Windows and macOS only) The relative position of the shared region to the whole screen. See Rectangle. If you do not set this parameter, the SDK shares the whole screen. If the region you set exceeds the boundary of the screen, only the region within in the screen is shared. If you set width or height in Rectangle as 0, the whole screen is shared.