Package im.zego.zegoexpress.constants
Enum ZegoPublishChannel
- java.lang.Object
-
- java.lang.Enum<ZegoPublishChannel>
-
- im.zego.zegoexpress.constants.ZegoPublishChannel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoPublishChannel>
public enum ZegoPublishChannel extends java.lang.Enum<ZegoPublishChannel>
Publish channel.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoPublishChannel
getZegoPublishChannel(int value)
int
value()
static ZegoPublishChannel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoPublishChannel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAIN
public static final ZegoPublishChannel MAIN
The main (default/first) publish channel.
-
AUX
public static final ZegoPublishChannel AUX
The auxiliary (second) publish channel
-
THIRD
public static final ZegoPublishChannel THIRD
The third publish channel
-
FOURTH
public static final ZegoPublishChannel FOURTH
The fourth 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 namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoPublishChannel
public static ZegoPublishChannel getZegoPublishChannel(int value)
-
-