ZegoLabelInfo Class Reference

Inherits from NSObject
Declared in ZegoExpressDefines.h

Overview

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.

  text

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.

@property (nonatomic, copy) NSString *text

Declared In

ZegoExpressDefines.h

  left

The distance between the font and the left border of the output canvas, in px. Required: False. Default value: 0.

@property (nonatomic, assign) int left

Declared In

ZegoExpressDefines.h

  top

The distance between the font and the top border of the output canvas, in px. Required: False. Default value: 0.

@property (nonatomic, assign) int top

Declared In

ZegoExpressDefines.h

  font

Font style. Required: False.

@property (nonatomic, strong) ZegoFontStyle *font

Declared In

ZegoExpressDefines.h

+ new

Please use [initWithText:] instead

+ (instancetype)new

Declared In

ZegoExpressDefines.h

– init

Please use [initWithText:] instead

- (instancetype)init

Declared In

ZegoExpressDefines.h

– initWithText:

ZegoLabelInfo instance.

- (instancetype)initWithText:(NSString *)text

Return Value

ZegoLabelInfo instance.

Declared In

ZegoExpressDefines.h