@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(
    surface: Surface!,
    width: Int,
    height: Int,
    orientationDegrees: Int
)

Creates a new instance.

Public functions

Boolean
equals(o: Any?)
Int

Public properties

Int

The height of frames rendered to the surface, in pixels.

Int

A counter-clockwise rotation to apply to frames before rendering them to the surface.

Surface!

The Surface.

Int

The width of frames rendered to the surface, in pixels.

Public constructors

SurfaceInfo

SurfaceInfo(surface: Surface!, width: Int, height: Int)

Creates a new instance.

SurfaceInfo

SurfaceInfo(
    surface: Surface!,
    width: Int,
    height: Int,
    orientationDegrees: Int
)

Creates a new instance.

Public functions

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

height

val heightInt

The height of frames rendered to the surface, in pixels.

orientationDegrees

val orientationDegreesInt

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.

surface

val surfaceSurface!

The Surface.

width

val widthInt

The width of frames rendered to the surface, in pixels.