# ScreenCaptureConfiguration (/zh-CN/api-reference/rtc/flutter/class-screencaptureconfiguration)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```dart
class ScreenCaptureConfiguration {
const ScreenCaptureConfiguration(
{this.isCaptureWindow,
this.displayId,
this.screenRect,
this.windowId,
this.params,
this.regionRect});
@JsonKey(name: 'isCaptureWindow')
final bool? isCaptureWindow;
@JsonKey(name: 'displayId')
final int? displayId;
@JsonKey(name: 'screenRect')
final Rectangle? screenRect;
@JsonKey(name: 'windowId')
final int? windowId;
@JsonKey(name: 'params')
final ScreenCaptureParameters? params;
@JsonKey(name: 'regionRect')
final Rectangle? regionRect;
factory ScreenCaptureConfiguration.fromJson(Map json) =>
_$ScreenCaptureConfigurationFromJson(json);
Map toJson() => _$ScreenCaptureConfigurationToJson(this);
}
```
## 属性 [#属性]
是否采集屏幕上的窗口:
- true:采集窗口。
- false:(默认)采集屏幕,不采集窗口。
(仅适用于 macOS 平台)屏幕的 display ID。
:::note
注: 请仅在 Mac 设备上采集屏幕时使用该参数。
:::
(仅适用于 Windows 平台)待共享的屏幕相对于虚拟屏的位置。
:::note
注: 请仅在 Windows 设备上采集屏幕时使用该参数。
:::
(仅适用于 Windows 和 macOS 平台)窗口 ID。
:::note
注: 请仅在采集窗口时使用该参数。
:::
(仅适用于 Windows 和 macOS 平台)屏幕共享流的编码参数配置。详见 [ScreenCaptureParameters](/zh-CN/api-reference/rtc/flutter/class-screencaptureparameters)。
(仅适用于 Windows 和 macOS 平台)待共享区域相对于整个屏幕的位置。详见 [Rectangle](/zh-CN/api-reference/rtc/flutter/class-rectangle)。如不填,则表示共享整个屏幕。如果设置的共享区域超出了屏幕的边界,则只共享屏幕内的内容。 如果将 [Rectangle](/zh-CN/api-reference/rtc/flutter/class-rectangle) 中的 width 或 height 设为 0 ,则共享整个屏幕。