PreviewView.ImplementationMode

public static final enum PreviewView.ImplementationMode
extends Enum<PreviewView.ImplementationMode>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.view.PreviewView.ImplementationMode>
     ↳ androidx.camera.view.PreviewView.ImplementationMode


The implementation mode of a PreviewView

Specifies how the Preview surface will be implemented internally: Using a SurfaceView or a TextureView (which is the default)

Summary

Enum values

PreviewView.ImplementationMode  SURFACE_VIEW

Use a SurfaceView for the preview  

PreviewView.ImplementationMode  TEXTURE_VIEW

Use a TextureView for the preview  

Public methods

int getId()
static PreviewView.ImplementationMode valueOf(String name)
static final ImplementationMode[] values()

Inherited methods

Enum values

SURFACE_VIEW

public static final PreviewView.ImplementationMode SURFACE_VIEW

Use a SurfaceView for the preview

TEXTURE_VIEW

public static final PreviewView.ImplementationMode TEXTURE_VIEW

Use a TextureView for the preview

Public methods

getId

public int getId ()

Returns
int

valueOf

public static PreviewView.ImplementationMode valueOf (String name)

Parameters
name String

Returns
PreviewView.ImplementationMode

values

public static final ImplementationMode[] values ()

Returns
ImplementationMode[]