SurfaceWrapper

public final class SurfaceWrapper
extends Object

java.lang.Object
   ↳ androidx.car.app.activity.renderer.surface.SurfaceWrapper


A class holding the information needed to render the content on a surface.

Summary

Public constructors

SurfaceWrapper(IBinder hostToken, int width, int height, int displayId, int densityDpi, Surface surface)

Creates a SurfaceWrapper.

Public methods

int getDensityDpi()

Returns the screen density expressed as dots-per-inch of the Display for the contained SurfaceView.

int getDisplayId()

Returns the display id of the Display for the SurfaceView contained in this class.

int getHeight()

Returns the height of the contained SurfaceView in pixels.

IBinder getHostToken()

Returns the host token corresponding to the SurfaceView contained in this class.

Surface getSurface()

Returns the Surface of the contained SurfaceView.

int getWidth()

Returns the width of the contained SurfaceView in pixels.

Inherited methods