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

Lukas K-G

02/18/2021, 2:51 PM
I shere a way to get hold of a Surface in compose?
z

Zach Klippenstein (he/him) [MOD]

02/18/2021, 2:51 PM
You could use
AndroidView
to embed a
SurfaceView
l

Lukas K-G

02/18/2021, 2:53 PM
Thanks! So there is no "compose" way of doing it?
k

Kirill Grouchnikov

02/18/2021, 2:56 PM
It has to be Android specific since
Surface
is an Android thing
z

Zach Klippenstein (he/him) [MOD]

02/18/2021, 3:23 PM
You could file a bug asking for a more convenient compose API for it, although i doubt it get done until after 1.0 has shipped.
l

Lukas K-G

02/18/2021, 3:26 PM
Makes sense thanks for your time!