Package im.zego.zegoexpress.constants
Enum ZegoStreamCensorshipMode
- java.lang.Object
-
- java.lang.Enum<ZegoStreamCensorshipMode>
-
- im.zego.zegoexpress.constants.ZegoStreamCensorshipMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoStreamCensorshipMode>
public enum ZegoStreamCensorshipMode extends java.lang.Enum<ZegoStreamCensorshipMode>
Publish CensorshipMode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIO
only censorship stream audio.AUDIO_AND_VIDEO
censorship stream audio and video.NONE
no censorship.VIDEO
only censorship stream video.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoStreamCensorshipMode
getZegoStreamCensorshipMode(int value)
int
value()
static ZegoStreamCensorshipMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoStreamCensorshipMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ZegoStreamCensorshipMode NONE
no censorship.
-
AUDIO
public static final ZegoStreamCensorshipMode AUDIO
only censorship stream audio.
-
VIDEO
public static final ZegoStreamCensorshipMode VIDEO
only censorship stream video.
-
AUDIO_AND_VIDEO
public static final ZegoStreamCensorshipMode AUDIO_AND_VIDEO
censorship stream audio and video.
-
-
Method Detail
-
values
public static ZegoStreamCensorshipMode[] 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 (ZegoStreamCensorshipMode c : ZegoStreamCensorshipMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoStreamCensorshipMode 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()
-
getZegoStreamCensorshipMode
public static ZegoStreamCensorshipMode getZegoStreamCensorshipMode(int value)
-
-