OnConnectListener class

SDK 连接状态监听

Constructors

OnConnectListener({dynamic onConnectFailed(int? code, String? errorMsg)?, dynamic onConnectSuccess()?, dynamic onConnecting()?, dynamic onKickedOffline()?, dynamic onUserTokenExpired()?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onConnectFailed ↔ (dynamic Function(int? code, String? errorMsg)?)
getter/setter pair
onConnecting ↔ (dynamic Function()?)
getter/setter pair
onConnectSuccess ↔ (dynamic Function()?)
getter/setter pair
onKickedOffline ↔ (dynamic Function()?)
getter/setter pair
onUserTokenExpired ↔ (dynamic Function()?)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connectFailed(int? code, String? errorMsg) → void
SDK连接服务器失败
connecting() → void
SDK正在连接服务器
connectSuccess() → void
SDK连接服务器成功
kickedOffline() → void
账号已在其他地方登录,当前设备被踢下线
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
userTokenExpired() → void
登录凭证过期,需要重新登录

Operators

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