~/talk

Native CameraX in Jetpack Compose - Filling the View-Shaped Hole

Talkat AndroidMakers by droidcon 2026 · on Friday, 2026-04-10· at 15:25· [android, machine-learning]
slides:none on file

Native CameraX now exposes a SurfaceRequest and a composable CameraXViewfinder that replaces PreviewView and publishes frames via SurfaceRequest to StateFlow, enabling a reactive pipeline that actually works end to end. CoordinateTransformer handles tap‑to‑focus math and rotation automatically. Two rendering modes trade battery for effects: EXTERNAL (SurfaceView) vs EMBEDDED (TextureView) — external is cheap but blocks modifiers, embedded supports blur/alpha/rotation at GPU cost. Demo app and Camera2Interop examples compile and run, and integrate with ML Kit and MediaPipe.

AI-written summary · about

  1. 0:00Welcome
  2. 3:20Android camera APIs
  3. 5:13Introducing CameraX Compose
  4. 7:46Viewfinder composable explained
  5. 11:22Surface request deep dive
  6. 15:17CameraX preview
  7. 17:45Viewfinder design
  8. 19:10PreviewView vs Viewfinder
  9. 20:56Modifiers and scaling
  10. 22:22Content scale and alignment
  11. 23:05Coordinate transformer
  12. 23:50Camera switching
  13. 24:56Tap to focus
  14. 25:39Pinch to zoom
  15. 27:08Photo and video capture
  16. 28:34Embedded vs external demo
  17. 33:39Embedded vs external modes
  18. 37:15Summary
  19. 39:01Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.