ZegoLabelInfo class
Label info.
Description: Font style configuration, can be used to configure font type, font si-e, font color, font transparency. Use cases: Set text watermark in manual stream mixing scene, such as Co-hosting.
Constructors
- ZegoLabelInfo(String text, int left, int top, ZegoFontStyle font)
- ZegoLabelInfo.text(String text)
- Build a label info object with text.
Properties
- font ↔ ZegoFontStyle
-
Font style. Required: False.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- left ↔ int
-
The distance between the font and the left border of the output canvas, in px. Required: False. Default value: 0.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
Text content, support for setting simplified Chinese, English, half-width, not full-width. Required: True.Value range: Maximum support for displaying 100 Chinese characters and 300 English characters.
getter/setter pair
- top ↔ int
-
The distance between the font and the top border of the output canvas, in px. Required: False. Default value: 0.
getter/setter pair
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