Enum ZegoTeamState

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

    public enum ZegoTeamState
    extends java.lang.Enum<ZegoTeamState>
    Team state.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      KICK_OUT
      Kicked out of the team by the server.
      LOGIN_FAILED
      Failed to join the room.
      LOGINED
      Join the room successfully.
      LOGINING
      Joining the team.
      LOGOUT
      Leave the team is successful.
      RECONNECT_FAILED
      The team connection fails to reconnect.
      RECONNECTED
      The team connection is successfully reconnected.
      RECONNECTING
      The team connection is temporarily interrupted.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ZegoTeamState getZegoTeamState​(int value)  
      int value()  
      static ZegoTeamState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ZegoTeamState[] 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 ZegoTeamState LOGINING
        Joining the team. When calling [joinTeam] to join the team, 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 ZegoTeamState LOGINED
        Join the room successfully. When joined the team successfully, it will enter this state.
      • LOGIN_FAILED

        public static final ZegoTeamState LOGIN_FAILED
        Failed to join the room. When the join team fails, it will enter this state.
      • RECONNECTING

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

        public static final ZegoTeamState RECONNECTED
        The team connection 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 ZegoTeamState RECONNECT_FAILED
        The team connection 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 ZegoTeamState KICK_OUT
        Kicked out of the team by the server. For example, if you join the team with the same user name in other places, and the local end is kicked out of the team, it will enter this state.
      • LOGOUT

        public static final ZegoTeamState LOGOUT
        Leave the team is successful. It is in this state by default before join the team. When calling [leaveTeam] to leave the team successfully, it will enter this state.
    • Method Detail

      • values

        public static ZegoTeamState[] 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 (ZegoTeamState c : ZegoTeamState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoTeamState 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()
      • getZegoTeamState

        public static ZegoTeamState getZegoTeamState​(int value)