# AgoraScreenCaptureConfiguration (/zh-CN/api-reference/rtc/macos/class-screencaptureconfiguration)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_screencaptureconfiguration__prototype"></a>

```objc
__attribute__((visibility("default"))) @interface AgoraScreenCaptureConfiguration: NSObject
@property(assign, nonatomic) BOOL isCaptureWindow;
@property(assign, nonatomic) UInt32 displayId;
@property(assign, nonatomic) UInt32 windowId;
@property(strong, nonatomic) AgoraScreenCaptureParameters* _Nonnull params;
@property(assign, nonatomic) CGRect regionRect;
@end
```

<a id="class_screencaptureconfiguration__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="iscapturewindow"></a>
<Parameter name="isCaptureWindow">

是否采集屏幕上的窗口：

- YES：采集窗口。
- NO：（默认）采集整个屏幕，而非窗口。

</Parameter>
<a id="displayid"></a>
<Parameter name="displayId">

屏幕的显示 ID。

:::note
注： 该参数仅在 macOS 上采集屏幕时生效。
:::

</Parameter>
<a id="windowid"></a>
<Parameter name="windowId">

窗口 ID。

:::note
注： 该参数仅在采集窗口时生效。
:::

</Parameter>
<a id="params"></a>
<Parameter name="params">

屏幕采集的配置参数，详见 [AgoraScreenCaptureParameters](/zh-CN/api-reference/rtc/macos/class-screencaptureparameters)。

</Parameter>
<a id="regionrect"></a>
<Parameter name="regionRect">

共享区域相对于整个屏幕的位置。

</Parameter>
</ParameterList>
