LegacySurfacePackage

public final class 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, android.view.SurfaceControlViewHost.SurfacePackage will be used instead.

Summary

Public constructors

Creates a LegacySurfacePackage.

Public constructors

LegacySurfacePackage

Added in 1.1.0
public LegacySurfacePackage(@NonNull SurfaceControlCallback callback)

Creates a LegacySurfacePackage.

Parameters
@NonNull SurfaceControlCallback callback

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