[android] - add javadoc to highlight imcompatible onIdle with snapshot API, update test app example to use OnFullyRenderedFrame callback instead

This commit is contained in:
tobrun
2019-05-09 13:14:00 +02:00
committed by Tobrun
parent 842ee6b6f5
commit f586ec378e
2 changed files with 15 additions and 6 deletions

View File

@@ -937,6 +937,10 @@ public class MapView extends FrameLayout implements NativeMapView.ViewCallback {
/**
* Interface definition for a callback to be invoked when the map has entered the idle state.
* <p>
* Calling {@link MapboxMap#snapshot(MapboxMap.SnapshotReadyCallback)} from this callback
* will result in recursive execution. Use {@link OnDidFinishRenderingFrameListener} instead.
* </p>
* <p>
* {@link MapView#addOnDidBecomeIdleListener(OnDidBecomeIdleListener)}
* </p>
*/