ZIMConnectionEvent enum
Connection state.
Description: The state machine that identifies the current connection state.
Use cases: It can be used to judge whether the user enters/exit the room successfully, and handles abnormal situations such as network disconnection.
Caution: Please use it with the connection event parameter.
Constructors
- ZIMConnectionEvent()
-
const
Values
- unknown → const ZIMConnectionEvent
- success → const ZIMConnectionEvent
-
Description: Success.
- activeLogin → const ZIMConnectionEvent
-
Description: The user actively logs in.
- loginTimeout → const ZIMConnectionEvent
-
Description: Connection timed out.
- interrupted → const ZIMConnectionEvent
-
Description: The network connection is temporarily interrupted.
- kickedOut → const ZIMConnectionEvent
-
Description: Being kicked out.
- tokenExpired → const ZIMConnectionEvent
-
Description: Being token expierd.
- unregistered → const ZIMConnectionEvent
-
Description: Being unregistered.
Properties
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
Constants
-
values
→ const List<
ZIMConnectionEvent> - A constant List of the values in this enum, in order of their declaration.