SurfaceType

SurfaceType

enum SurfaceType : Enum<SurfaceType>

The type of surface on which to render video.

See Choosing a surface type.

Entries

SurfaceViewSurfaceView
SurfaceView generally causes lower battery consumption, and has better handling for HDR and secure content.
TextureViewTextureView
TextureView is sometime needed for smooth animations.

Properties

NameSummary
entriesval entries: EnumEntries<SurfaceType>
Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

NameSummary
valueOffun 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.)
valuesfun values(): Array<SurfaceType>
Returns an array containing the constants of this enum type, in the order they're declared.