ZegoCanvas class

视图对象

配置 View 对象、视图模式、视图背景颜色

Constructors

ZegoCanvas(int view, {ZegoViewMode? viewMode, int? backgroundColor, bool? alphaBlend})
ZegoCanvas.view(int view)
创建视图,viewMode 默认为 AspectFit,背景色默认为黑色

Properties

alphaBlend ↔ bool?
是否允许 alpha 混合图层渲染,默认为 false。
read / write
backgroundColor ↔ int?
背景颜色,格式为 0xRRGGBB,默认为黑色即 0x000000
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
view ↔ int
ViewID,此参数为调用 createCanvasView 通过回调函数返回的 ViewID
read / write
viewMode ZegoViewMode?
视图模式,默认为 ZegoViewModeAspectFit
read / write

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