ZegoLabelInfo class

文本信息。

详情描述:文本信息配置,可用于配置文本内容、文本位置、文本风格。 业务场景:手动混流场景时,设置文字水印,比如多人连麦直播。

Constructors

ZegoLabelInfo(String text, int left, int top, ZegoFontStyle font)
ZegoLabelInfo.text(String text)
通过 text 构造一个文本信息对象。

Properties

font ZegoFontStyle
字体风格。是否必填:否。
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
left ↔ int
字体距离输出画布左边框的距离,单位 px。是否必填:否。默认值:0。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
text ↔ String
文本内容,支持设置简体中文、英文、半角,不支持全角。是否必填:是。取值范围:最大支持显示100个中文字符,300 个英文字符。
read / write
top ↔ int
字体距离输出画布上边框的距离,单位 px。是否必填:否。默认值:0。
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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