Daniel Candeias
03/31/2021, 4:46 PMonActive{}
.
• Does it still exist, or does it have a different name/approach now? Currently using compose version 1.0.0-beta3
, i did import runtime
, livedata
and rxjava2
but still cant see these methods.
• I would like the animation to start as soon as its rendered. For this I would use animateFloatAsState
for this together with onActive{}
. I guess the is how we handle animation.Ian Lake
03/31/2021, 4:48 PMIan Lake
03/31/2021, 4:49 PManimateFloatAsState
besides use the returned value (it'll handle recomposition, etc. all for you): https://developer.android.com/jetpack/compose/animation#animate-as-state