ImplementationMode

class ImplementationMode
kotlin.Any
   ↳ kotlin.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 android.view.SurfaceView or a android.view.TextureView (which is the default)

Summary

Enum values

Use a android.view.SurfaceView for the preview

Use a android.view.TextureView for the preview

Public methods

Int

Enum values

SURFACE_VIEW

enum val SURFACE_VIEW : PreviewView.ImplementationMode

Use a android.view.SurfaceView for the preview

TEXTURE_VIEW

enum val TEXTURE_VIEW : PreviewView.ImplementationMode

Use a android.view.TextureView for the preview

Public methods

getId

fun getId(): Int