ClassSwitchEnv class abstract

ClassSwitcher 所需的环境查询接口,用于解耦 TCICController。

注:当前 SDK 中回放走独立的 TCICPlaybackPage(WebView), ClassSwitcher 只在 classroom 页 live,因此无需 isPlayback() 判定。

Constructors

ClassSwitchEnv()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

classSwitchEnabled() bool
currentClassId() String
isStudent() bool
@deprecated 保留接口兼容;ClassSwitcher 不再按角色过滤,所有角色均可切换。
nextClassId() String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSwitchTo(String newClassId) Future<void>
执行一次完整切换:软销毁 + 加入新课堂。任一步骤失败应抛 ClassSwitchError。
toString() String
A string representation of this object.
inherited

Operators

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