https://kotlinlang.org logo
#compose
Title
# compose
l

Lilly

05/03/2020, 12:11 AM
Is it possible to use camera features with compose. I'm thinking about SurfaceView...
z

Zach Klippenstein (he/him) [MOD]

05/04/2020, 5:34 PM
You can embed Android `View`s in a composition, so I think
SurfaceView
should work. The biggest limitation with that currently is that those views don’t get input events, but if you’re building a camera you’re probably layering the control UI on top of the actual surface view so I’m guessing you don’t care.
l

Lilly

05/13/2020, 12:10 PM
@Zach Klippenstein (he/him) [MOD] hey sorry for the late reply, didn't notice that someone answered. Are you aware of an example to embed traditional Views into composition?
2 Views