FixedSizeTextureViewImplementation

open class FixedSizeTextureViewImplementation : Implementation
kotlin.Any
   ↳ androidx.camera.view.FixedSizeTextureViewImplementation

A TextureView implementation for PreviewView that uses a FixedSizeSurfaceTexture. TODO: This is a temporary fix for the distorted preview seen on both PreviewViewFragment and CameraViewFragment after onPause/onResume (b/146048690), and will be removed after the TextureView's view parameters are modified instead of applying a transform matrix on it.

Summary

Public constructors

A TextureView implementation for PreviewView that uses a FixedSizeSurfaceTexture.

Public methods

open Preview.PreviewSurfaceProvider

open Unit
init(@NonNull parent: FrameLayout)

Public constructors

<init>

FixedSizeTextureViewImplementation()

A TextureView implementation for PreviewView that uses a FixedSizeSurfaceTexture. TODO: This is a temporary fix for the distorted preview seen on both PreviewViewFragment and CameraViewFragment after onPause/onResume (b/146048690), and will be removed after the TextureView's view parameters are modified instead of applying a transform matrix on it.

Public methods

getPreviewSurfaceProvider

@NonNull open fun getPreviewSurfaceProvider(): Preview.PreviewSurfaceProvider

init

open fun init(@NonNull parent: FrameLayout): Unit