Coroutine Context in Custom Transition for 2.0 #1196
-
I am trying to upgrade from 1.4 to 2.0 and I see the transition usage has changed. The documentation points to the CrossfadeTransition which is fine but in 1.4 you could mark the How would you do coroutine work in the transition method in 2.0? this is what I was doing in 1.4
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'd recommend using a |
Beta Was this translation helpful? Give feedback.
I'd recommend using a
listener
in 2.0 to generate the palette. Check out this snippit for how to do that. Transitions are no longer suspend functions in 2.x as it's not necessary to suspend until the transition is complete; this was required in 1.x for bitmap pooling.