LegacySurfacePackage


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
LegacySurfacePackage(callback: SurfaceControlCallback)

Creates a LegacySurfacePackage.

Parameters
callback: SurfaceControlCallback

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