ScreenCaptureSourceInfo
- Flutter
更新时间不可用
可共享窗口或屏幕的信息。
class ScreenCaptureSourceInfo {
const ScreenCaptureSourceInfo(
{this.type,
this.sourceId,
this.sourceName,
this.thumbImage,
this.iconImage,
this.processPath,
this.sourceTitle,
this.primaryMonitor,
this.position,
this.minimizeWindow,
this.sourceDisplayId});
@JsonKey(name: 'type')
final ScreenCaptureSourceType? type;
@JsonKey(name: 'sourceId')
final int? sourceId;
@JsonKey(name: 'sourceName')
final String? sourceName;
@JsonKey(name: 'thumbImage')
final ThumbImageBuffer? thumbImage;
@JsonKey(name: 'iconImage')
final ThumbImageBuffer? iconImage;
@JsonKey(name: 'processPath')
final String? processPath;
@JsonKey(name: 'sourceTitle')
final String? sourceTitle;
@JsonKey(name: 'primaryMonitor')
final bool? primaryMonitor;
@JsonKey(name: 'position')
final Rectangle? position;
@JsonKey(name: 'minimizeWindow')
final bool? minimizeWindow;
@JsonKey(name: 'sourceDisplayId')
final int? sourceDisplayId;
factory ScreenCaptureSourceInfo.fromJson(Map<String, dynamic> json) =>
_$ScreenCaptureSourceInfoFromJson(json);
Map<String, dynamic> toJson() => _$ScreenCaptureSourceInfoToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
type | 共享目标的类型。详见 ScreenCaptureSourceType。 |
sourceId | |
sourceName | |
thumbImage | 缩略图的图像内容。详见 ThumbImageBuffer。 |
iconImage | 图标的图像内容。详见 ThumbImageBuffer。 |
processPath | |
sourceTitle | |
primaryMonitor | |
position | 窗口相对于整个屏幕空间(包含所有可共享屏幕)的位置。详见 Rectangle。 |
minimizeWindow | |
sourceDisplayId |