ZegoCanvas class

View object.

Configure view object, view Mode, background color

Constructors

ZegoCanvas(int view, {ZegoViewMode? viewMode, int? backgroundColor, bool? alphaBlend, int? rotation, bool? mirror, String? viewContext})
ZegoCanvas.view(int view)
Create a ZegoCanvas, default viewMode is AspectFit, default background color is black

Properties

alphaBlend bool?
If enable alpha blend render, default is false.
getter/setter pair
backgroundColor int?
Background color, the format is 0xRRGGBB, default is black, which is 0x000000
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mirror bool?
If enable the view mirror, default is false. Only play stream canvas is supported, for publish stream please use setVideoMirrorMode interface, for media player please use enableViewMirror interface.
getter/setter pair
rotation int?
Rotate the angle counterclockwise, the default is 0. The media player canvas is not supported.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
view int
ViewID, this parameter is the ViewID returned by calling createCanvasView through the callback function
getter/setter pair
viewContext String?
Context of view, default is empty string. A utf8 string with a maximum length of 63 bytes or less. Generally no attention is required, it can be used for slitting rendering of mixed stream, to understand the specific use, you need to contact ZEGO technical support.
getter/setter pair
viewMode ZegoViewMode?
View mode, default is ZegoViewModeAspectFit
getter/setter pair

Methods

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

Operators

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