Package com.amazonaws.ivs.broadcast
Enum BroadcastConfiguration.AspectMode
- java.lang.Object
-
- java.lang.Enum<BroadcastConfiguration.AspectMode>
-
- com.amazonaws.ivs.broadcast.BroadcastConfiguration.AspectMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BroadcastConfiguration.AspectMode>
- Enclosing class:
- BroadcastConfiguration
public static enum BroadcastConfiguration.AspectMode extends java.lang.Enum<BroadcastConfiguration.AspectMode>
The AspectMode determines how an image's aspect ratio will be maintained. NONE will simply fill the bounding area with the image, disregarding the aspect ratio. FIT will fit the entire image within the bounding area while maintaining the correct aspect ratio. in practice this means that there will be letterboxing or pillarboxing. FILL will fill the bounding area with the image while maintaining the aspect ratio. in practice this means that the image will likely be cropped.
-
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BroadcastConfiguration.AspectMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BroadcastConfiguration.AspectMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final BroadcastConfiguration.AspectMode NONE
-
FIT
public static final BroadcastConfiguration.AspectMode FIT
-
FILL
public static final BroadcastConfiguration.AspectMode FILL
-
-
Method Detail
-
values
public static BroadcastConfiguration.AspectMode[] 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 (BroadcastConfiguration.AspectMode c : BroadcastConfiguration.AspectMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BroadcastConfiguration.AspectMode 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
-
-