The second Android 11 Developer Preview is now available, test it out and share your feedback.

TextureViewImplementation

public class TextureViewImplementation
extends Object

java.lang.Object
   ↳ androidx.camera.view.TextureViewImplementation


The TextureView implementation for PreviewView

Summary

Public constructors

TextureViewImplementation()

Public methods

Size getResolution()
Preview.SurfaceProvider getSurfaceProvider()

Gets the Preview.SurfaceProvider to be used with Preview.

void initializePreview()

Inherited methods

Public constructors

TextureViewImplementation

public TextureViewImplementation ()

Public methods

getResolution

public Size getResolution ()

Returns
Size

getSurfaceProvider

public Preview.SurfaceProvider getSurfaceProvider ()

Gets the Preview.SurfaceProvider to be used with Preview.

Returns
Preview.SurfaceProvider

initializePreview

public void initializePreview ()