Sergey Y.
03/04/2021, 11:36 PMCompositionContext
class, but I don't know how to use it. Can anyone please help?
Thanks 🙂Dominaezzz
03/04/2021, 11:40 PMComposition
or Recomposer
there's a method called runConcurrent....something I think.Sergey Y.
03/04/2021, 11:42 PMSergey Y.
03/04/2021, 11:44 PMDominaezzz
03/04/2021, 11:50 PMDominaezzz
03/04/2021, 11:50 PMRecomposer.runRecomposeConcurrentlyAndApplyChanges
is what it's called lol.Sergey Y.
03/04/2021, 11:52 PMSergey Y.
03/04/2021, 11:53 PMDominaezzz
03/05/2021, 12:03 AMsetContent
might have a hint.Adam Powell
03/05/2021, 12:27 AMAndroidUiDispatcher.Main
as its effect context)
2. get it running by calling the method described above, use AndroidUiDispatcher.Main
for that call (edit: launch the call into AndroidUiDispatcher.Main
and pass some background dispatcher like Dispatchers.Default
or a background single-threaded dispatcher as the recompose context parameter)
3. create a ComposeView and set its parentCompositionContext to the Recomposer you created
4. Attach your ComposeView to a windowAdam Powell
03/05/2021, 12:27 AMKlaas Kabini
03/05/2021, 8:24 AM