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 |
PreviewView.ImplementationMode |
TEXTURE_VIEW
Use a |
Public methods | |
|---|---|
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
valueOf
public static PreviewView.ImplementationMode valueOf (String name)
| Parameters | |
|---|---|
name |
String |
| Returns | |
|---|---|
PreviewView.ImplementationMode |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-01.