textureView property

bool? textureView
final

Whether to use a TextureView as the Android render surface. Has no effect on iOS or web.

When unset a SurfaceView is used, which renders directly, without the per-frame SurfaceTexture copy a TextureView requires. Set it to true for a transparent background (isOpaque false) and for the hosting modes that cannot display a SurfaceView (AndroidPlatformViewHostingMode.VD and AndroidPlatformViewHostingMode.TLHC_VD), which both need a TextureView.

Implementation

final bool? textureView;