Enum ZegoPublishChannel

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

    public enum ZegoPublishChannel
    extends java.lang.Enum<ZegoPublishChannel>
    Publish channel.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUX
      The auxiliary (second) publish channel
      FOURTH
      The fourth publish channel
      MAIN
      The main (default/first) publish channel.
      THIRD
      The third publish channel
    • Method Detail

      • values

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

        public static ZegoPublishChannel 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()
      • getZegoPublishChannel

        public static ZegoPublishChannel getZegoPublishChannel​(int value)