Package im.zego.zegoexpress.constants
Enum ZegoViewMode
- java.lang.Object
-
- java.lang.Enum<ZegoViewMode>
-
- im.zego.zegoexpress.constants.ZegoViewMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoViewMode>
public enum ZegoViewMode extends java.lang.Enum<ZegoViewMode>
Video rendering fill mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASPECT_FILL
The proportional zoom fills the entire View and may be partially cutASPECT_FIT
The proportional scaling up, there may be black bordersSCALE_TO_FILL
Fill the entire view, the image may be stretched
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoViewMode
getZegoViewMode(int value)
int
value()
static ZegoViewMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoViewMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASPECT_FIT
public static final ZegoViewMode ASPECT_FIT
The proportional scaling up, there may be black borders
-
ASPECT_FILL
public static final ZegoViewMode ASPECT_FILL
The proportional zoom fills the entire View and may be partially cut
-
SCALE_TO_FILL
public static final ZegoViewMode SCALE_TO_FILL
Fill the entire view, the image may be stretched
-
-
Method Detail
-
values
public static ZegoViewMode[] 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 (ZegoViewMode c : ZegoViewMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoViewMode 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()
-
getZegoViewMode
public static ZegoViewMode getZegoViewMode(int value)
-
-