ZegoCanvas class
视图对象
配置 View 对象、视图模式、视图背景颜色
Constructors
- ZegoCanvas(int view, {ZegoViewMode? viewMode, int? backgroundColor, bool? alphaBlend, int? rotation, bool? mirror, String? viewContext})
- ZegoCanvas.view(int view)
- 创建视图,viewMode 默认为 AspectFit,背景色默认为黑色
Properties
- alphaBlend ↔ bool?
-
是否允许 alpha 混合图层渲染,默认为 false。
getter/setter pair
- backgroundColor ↔ int?
-
背景颜色,格式为 0xRRGGBB,默认为黑色即 0x000000
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mirror ↔ bool?
-
是否开启画面镜像,默认为 false。仅拉流视图支持,推流请使用
setVideoMirrorMode接口, 媒体播放器请使用enableViewMirror接口。getter/setter pair - rotation ↔ int?
-
逆时针旋转角度,默认为 0。媒体播放器视图不支持。
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- view ↔ int
-
ViewID,此参数为调用
createCanvasView通过回调函数返回的 ViewIDgetter/setter pair - viewContext ↔ String?
-
视图上下文,默认为空字符串。最大 63 字节的utf8编码字符串。一般无需关注,可用于混流的分切渲染,了解具体使用方法,需要联系ZEGO技术支持。
getter/setter pair
- viewMode ↔ ZegoViewMode?
-
视图模式,默认为 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