SurfaceInfo
@UnstableApi
class SurfaceInfo
Immutable value class for a Surface and supporting information.
Summary
Public constructors |
|---|
SurfaceInfo(surface: Surface!, width: Int, height: Int)Creates a new instance. |
SurfaceInfo(Creates a new instance. |
SurfaceInfo(Creates a new instance. |
Public properties |
|
|---|---|
Int |
The height of frames rendered to the |
Boolean |
Whether the |
Int |
A counter-clockwise rotation to apply to frames before rendering them to the |
Surface! |
The |
Int |
The width of frames rendered to the |
Public constructors
SurfaceInfo
SurfaceInfo(
surface: Surface!,
width: Int,
height: Int,
orientationDegrees: Int
)
Creates a new instance.
Public properties
isEncoderInputSurface
val isEncoderInputSurface: Boolean
Whether the surface is an encoder input surface.
orientationDegrees
val orientationDegrees: Int
A counter-clockwise rotation to apply to frames before rendering them to the surface.
Must be 0, 90, 180, or 270 degrees. Default is 0.