enableFor

fun enableFor(mapboxMap: MapCameraManagerDelegate, enableLogs: Boolean = false)

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

mapboxMap

instance of MapboxMap

enableLogs

whether logs will be printed. Defaults to False.