SurfaceContainer


@CarProtocol
class SurfaceContainer


A container for the Surface created by the host and its associated properties.

Summary

Public constructors

SurfaceContainer(surface: Surface?, width: Int, height: Int, dpi: Int)

Public functions

Int

Returns the pixel density of the surface or 0 if the surface is not ready.

Int

Returns the height of the surface or 0 if the surface is not ready.

Surface?

Returns the Surface held by the host or null if the surface is not ready.

Int

Returns the width of the surface or 0 if the surface is not ready.

String!

Public constructors

SurfaceContainer

Added in 1.0.0
SurfaceContainer(surface: Surface?, width: Int, height: Int, dpi: Int)

Public functions

getDpi

Added in 1.0.0
fun getDpi(): Int

Returns the pixel density of the surface or 0 if the surface is not ready.

getHeight

Added in 1.0.0
fun getHeight(): Int

Returns the height of the surface or 0 if the surface is not ready.

getSurface

Added in 1.0.0
fun getSurface(): Surface?

Returns the Surface held by the host or null if the surface is not ready.

getWidth

Added in 1.0.0
fun getWidth(): Int

Returns the width of the surface or 0 if the surface is not ready.

toString

fun toString(): String!