TRTCScreenCaptureSourceInfo class

屏幕分享的目标信息(仅适用于桌面系统)

在用户进行屏幕分享时,可以选择抓取整个桌面,也可以仅抓取某个程序的窗口。 TRTCScreenCaptureSourceInfo 用于描述待分享目标的信息,包括 ID、名称、缩略图等,该结构体中的字段信息均是只读的。

Constructors

TRTCScreenCaptureSourceInfo({TRTCScreenCaptureSourceType? type, int? sourceId, String? sourceName, TRTCImageBuffer? thumbBGRA, TRTCImageBuffer? iconBGRA, bool? isMinimizeWindow, bool? isMainScreen, int? x, int? y, int? width, int? height})
TRTCScreenCaptureSourceInfo.fromJson(Map<String, dynamic> json)
解析JSON的相应结构
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
height ↔ int?
屏幕/窗口高,单位:像素点。
getter/setter pair
iconBGRA ↔ TRTCImageBuffer?
分享窗口的图标。
getter/setter pair
isMainScreen ↔ bool?
是否为主显示屏(适用于多显示器的情况)。
getter/setter pair
isMinimizeWindow ↔ bool?
是否为最小化窗口。
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId ↔ int?
采集源的ID
getter/setter pair
sourceName ↔ String?
采集源名称(采用 UTF8 编码)。
getter/setter pair
thumbBGRA ↔ TRTCImageBuffer?
分享窗口的缩略图。
getter/setter pair
type ↔ TRTCScreenCaptureSourceType?
采集源类型(是分享整个屏幕?还是分享某个窗口?)。
getter/setter pair
width ↔ int?
屏幕/窗口宽,单位:像素点。
getter/setter pair
x ↔ int?
屏幕/窗口 x 坐标,单位:像素点。
getter/setter pair
y ↔ int?
屏幕/窗口 y 坐标,单位:像素点。
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
将当前对象转换为 JSON 格式。
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited