OnConnectListener class
SDK Connection State Listener
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 failed to connect to the server
-
connecting(
) → void - SDK is currently connecting to the server
-
connectSuccess(
) → void - SDK successfully connected to the server
-
kickedOffline(
) → void - The account has been logged in from another location, and the current device has been kicked offline
-
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 - Login credentials have expired and require reauthentication
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited