Yasith Vidanaarachchi

Google, Sofware Engineer - CameraX

Talk Title

Building a Compose-idiomatic CameraX Viewfinder: A Deep Dive

Room

Sapphire Room

Date

20.09.2024

Time

15:15 > 40 min

Share

on Twitter

The CameraX library offers powerful tools for building camera features in Android apps, but its integration with Jetpack Compose can be challenging. In this session we'll retrace our steps in creating a Compose-idiomatic Composable for the CameraX Viewfinder.

- CameraX already has a view based PreviewView, we'll talk about the limitations of wrapping it with AndroidView.

- Discuss the benefits of a Compose-first approach for seamless UI integration, state management, and a more natural development experience.

- What it means to make a Compose idiomatic Composable

- Dive into the complexities of aligning the Compose coordinate space with the CameraX coordinate space using the CoordinateTransformer

Speaker Bio

Yasith is a Software Engineer on the Android Camera Platform team working on CameraX with a focus on supporting modern Android practices. Before joining the Android Platform team, he worked on Android apps at various Google teams, at Meta, and at Amazon.

Menu