I have just started using Compose. Now I would like to have a Camera(X) widget in a @Composable. Can...
j
I have just started using Compose. Now I would like to have a Camera(X) widget in a @Composable. Can not seem to find that component. How can I go about wrapping it up myself?
a
You can take a look at the webview composable in the source tree for an example of how to wrap a highly stateful view in compose. This isn't necessarily the final pattern for doing it, but it should get you started
ui-android-view/src/main/java/androidx/ui/androidview/WebComponent.kt