Daniel
05/27/2021, 4:58 PMval state = rememberMapboxState(initialPosition, style)
MapboxView(state)
// later
state.animatePosition(newPosition)
The problem is I can't figure out how to have a method on the state trigger an update to the AndroidView. I'm considering having the state have a flow of events that the MapboxView attaches to in the `AndroidView`'s update, but I was wondering if there's a better approachDerek Ellis
05/27/2021, 8:51 PMMapboxState the position member would need to be a MutableState . Since the entire state is passed into your MapboxView (which I'm assuming is your composable wrapper?), when that state is updated (such as by calling animatePosition) then your mapbox composable will automatically recomposeDaniel
05/27/2021, 8:53 PMDaniel
05/27/2021, 8:54 PM