ZegoCanvas Class Reference

Inherits from NSObject
Declared in ZegoExpressDefines.h

Overview

Configure view object, view Mode, background color

  view

View object

@property (nonatomic, strong) ZGView *view

Declared In

ZegoExpressDefines.h

  viewMode

View mode, default is ZegoViewModeAspectFit

@property (nonatomic, assign) ZegoViewMode viewMode

Declared In

ZegoExpressDefines.h

  backgroundColor

Background color, the format is 0xRRGGBB, default is black, which is 0x000000

@property (nonatomic, assign) int backgroundColor

Declared In

ZegoExpressDefines.h

  alphaBlend

If enable alpha blend render, default is false.

@property (nonatomic, assign) BOOL alphaBlend

Declared In

ZegoExpressDefines.h

+ canvasWithView:

ZegoCanvas instance

+ (instancetype)canvasWithView:(ZGView *)view

Return Value

ZegoCanvas instance

Declared In

ZegoExpressDefines.h

– initWithView:

ZegoCanvas instance

- (instancetype)initWithView:(ZGView *)view

Return Value

ZegoCanvas instance

Declared In

ZegoExpressDefines.h