GridVideoController class

宫格/双Feed 小视频控制器

负责管理 GridVideoNativeView 对应的原生实例,提供刷新、滚动、暂停等方法。

Constructors

GridVideoController()

Properties

hashCode int
The hash code for this object.
no setterinherited
isReady bool
是否已经和原生实例绑定
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoId String?
当前绑定的视频 ID
no setter

Methods

backRefresh() Future<void>
返回场景时的挽留刷新
canBackPress() Future<bool>
校验返回键是否可以直接关闭页面
dispose() Future<void>
销毁视频实例并清理状态
initialize(String videoId) → void
由 Widget 内部调用,初始化视频 ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future<void>
刷新宫格/双Feed 数据
scrollToTop() Future<void>
滚动到顶部
setUserVisible(bool isVisible) Future<void>
控制可见性(配合 Tab 切换暂停/恢复播放)
toString() String
A string representation of this object.
inherited

Operators

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