LegacySurfacePackage

public final class LegacySurfacePackage
extends Object

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


A serializable class containing all the data required to render and interact with a surface from an off-process renderer. This class exists for compatibility with Q devices. In Android R and later, SurfaceControlViewHost.SurfacePackage will be used instead.

Summary

Public constructors

LegacySurfacePackage(SurfaceControlCallback callback)

Creates a LegacySurfacePackage.

Inherited methods

Public constructors

LegacySurfacePackage

public LegacySurfacePackage (SurfaceControlCallback callback)

Creates a LegacySurfacePackage.

Parameters
callback SurfaceControlCallback: a SurfaceControlCallback to be registered to receive off-process renderer events affecting the SurfaceView that content is rendered on.