PreviewImplementationMode

Android
type PreviewImplementationMode = "performance" | "compatible"

Represents the implementation mode for the PreviewView's surface on Android.

  • 'performance': Uses SurfaceView for better GPU-accelerated performance.
  • 'compatible': Uses TextureView for better compatibility and transforms support.

Note

'performance' does not support transparency or view layering.

See

See CameraX: PreviewView.setImplementationMode(...) for more information