XPSDKConnectionState
@objc
public enum XPSDKConnectionState : Int
XPSDKConnectionState - types of connection states
-
Set only before connecting
Declaration
Swift
case idle = 0
-
Set when we call connect and wait for response from server
Declaration
Swift
case connecting = 1
-
Set when we have connected and are about to send credentials
Declaration
Swift
case connected = 2
-
Set when we exchanged keys and set login credentials
Declaration
Swift
case loggingIn = 3
-
Set when we are logged in and successfully exchanging commands
Declaration
Swift
case working = 4
-
Set when we are disconnecting by the user
Declaration
Swift
case disconnecting = 5
-
Set when we have been disconnected (by the user or external factors) or failed connect/login
Declaration
Swift
case disconnected = 6
-
Set when we have experienced some sort of timeout or other connectivity error
Declaration
Swift
case lostConnection = 7