enable For
fun enableFor(mapboxMap: MapCameraManagerDelegate, enableLogs: Boolean = false)
Content copied to clipboard
Enable synchronizing puck and map camera updates for given map.
In practice this means that puck and map camera animators will be sending data at once to rendering engine based on Choreographer.FrameCallback.doFrameframeTimeNanos coming from the Android system. This might help to synchronize map camera and puck in certain scenarios e.g. when system is highly overloaded: either synchronized puck + camera data will be applied or the whole frame will be skipped or delayed.
Parameters
mapbox Map
instance of MapboxMap
enable Logs
whether logs will be printed. Defaults to False.