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 |
getDpi()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 |
Int |
getWidth()Returns the width of the surface or 0 if the surface is not ready. |
String! |
toString() |
Public constructors
Public functions
getDpi
fun getDpi(): Int
Returns the pixel density of the surface or 0 if the surface is not ready.
getHeight
fun getHeight(): Int
Returns the height of the surface or 0 if the surface is not ready.
getSurface
fun getSurface(): Surface?
Returns the Surface held by the host or null if the surface is not ready.