Enum ZegoSceneState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZegoSceneState>

    public enum ZegoSceneState
    extends java.lang.Enum<ZegoSceneState>
    Range scene state change reason.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      KICK_OUT
      Kicked out of the scene by the server.
      LOGIN_FAILED
      Failed to log in to the scene.
      LOGINED
      Log in to the scene successfully.
      LOGINING
      Logging in to the scene.
      LOGOUT
      Logout of the scene is successful.
      RECONNECT_FAILED
      The scene fails to reconnect.
      RECONNECTED
      The scene is successfully reconnected.
      RECONNECTING
      The scene connection is temporarily interrupted.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ZegoSceneState getZegoSceneState​(int value)  
      int value()  
      static ZegoSceneState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ZegoSceneState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LOGINING

        public static final ZegoSceneState LOGINING
        Logging in to the scene. When calling [loginScene] to log in to the scene, it will enter this state, indicating that it is requesting to connect to the server. The application interface is usually displayed through this state.
      • LOGINED

        public static final ZegoSceneState LOGINED
        Log in to the scene successfully. When the scene is successfully logged in, it will enter this state, indicating that the login to the scene has been successful, and users can normally use the range scene capabilities.
      • LOGIN_FAILED

        public static final ZegoSceneState LOGIN_FAILED
        Failed to log in to the scene. When the login fails, it will enter this state, indicating that the login scene has failed, for example, AppID or Token is incorrect, etc.
      • RECONNECTING

        public static final ZegoSceneState RECONNECTING
        The scene connection is temporarily interrupted. If the interruption occurs due to poor network quality, the SDK will retry internally.
      • RECONNECTED

        public static final ZegoSceneState RECONNECTED
        The scene is successfully reconnected. If there is an interruption due to poor network quality, the SDK will retry internally, and enter this state after successful reconnection.
      • RECONNECT_FAILED

        public static final ZegoSceneState RECONNECT_FAILED
        The scene fails to reconnect. If there is an interruption due to poor network quality, the SDK will retry internally, and enter this state after the reconnection fails.
      • KICK_OUT

        public static final ZegoSceneState KICK_OUT
        Kicked out of the scene by the server. For example, if you log in to the scene with the same user name in other places, and the local end is kicked out of the scene, it will enter this state.
      • LOGOUT

        public static final ZegoSceneState LOGOUT
        Logout of the scene is successful. It is in this state by default before logging into the scene. When calling [logoutScene] to log out of the scene successfully, it will enter this state.
    • Method Detail

      • values

        public static ZegoSceneState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZegoSceneState c : ZegoSceneState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoSceneState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public int value()
      • getZegoSceneState

        public static ZegoSceneState getZegoSceneState​(int value)