ScreenCaptureConfiguration
- Flutter
更新时间
屏幕采集配置。
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<String, dynamic> json) =>
_$ScreenCaptureConfigurationFromJson(json);
Map<String, dynamic> toJson() => _$ScreenCaptureConfigurationToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
isCaptureWindow | 是否采集屏幕上的窗口:
|
displayId | (仅适用于 macOS 平台)屏幕的 display ID。 注: 请仅在 Mac 设备上采集屏幕时使用该参数。 |
screenRect | (仅适用于 Windows 平台)待共享的屏幕相对于虚拟屏的位置。 注: 请仅在 Windows 设备上采集屏幕时使用该参数。 |
windowId | (仅适用于 Windows 和 macOS 平台)窗口 ID。 注: 请仅在采集窗口时使用该参数。 |
params | (仅适用于 Windows 和 macOS 平台)屏幕共享流的编码参数配置。详见 ScreenCaptureParameters。 |
regionRect |