SurfaceType
enum SurfaceType : Enum<SurfaceType>
The type of surface on which to render video.
Entries
| SurfaceView | SurfaceView SurfaceView generally causes lower battery consumption, and has better handling for HDR and secure content. |
| TextureView | TextureView TextureView is sometime needed for smooth animations. |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<SurfaceType> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
Functions
| Name | Summary |
|---|---|
| valueOf | fun valueOf(value: String): SurfaceType 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.) |
| values | fun values(): Array<SurfaceType> Returns an array containing the constants of this enum type, in the order they're declared. |