ZegoCanvas

View object.

Declared in ZegoExpressDefines.h

Includes

Property Lists

  • view - View object.
  • viewMode - View mode, default is ZegoViewModeAspectFit.
  • backgroundColor - Background color, the format is 0xRRGGBB, default is black, which is 0x000000.

Public-Static-Func Lists

Public-Func Lists

  • initWithView: - Create a ZegoCanvas, default viewMode is ZegoViewModeAspectFit, default background color is black.

Property Docs

view

View object.

viewMode

View mode, default is ZegoViewModeAspectFit.

backgroundColor

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

Public-Static-Func Docs

canvasWithView:

+ (instancetype)canvasWithView:(ZGView *) view;

Create a ZegoCanvas, default viewMode is ZegoViewModeAspectFit, default background color is black.

Public-Func Docs

initWithView:

- (instancetype)initWithView:(ZGView *) view;

Create a ZegoCanvas, default viewMode is ZegoViewModeAspectFit, default background color is black.