Interface MapView.OnReadyListener

  • Enclosing class:
    MapView
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface MapView.OnReadyListener

    Listener that gets notified when MapView is fully initialized and ready to handle all operations, which means that map scene is loaded and drawing surface is ready to render a map.

    Whenever there is a need to call any map view related functions directly after the Activity resumes, onMapViewReady() should be used for this purpose, as it guarantees that those operations will work. It is not recommended to call map view functionality directly from Activity's onResume().

    There are few typical moments in the lifecycle where it's useful to execute map view related operations:

    See Also:
    MapView.setOnReadyListener(OnReadyListener)
    • Method Detail

      • onMapViewReady

        void onMapViewReady()
        Callback to be called when MapView is fully initialized and ready to handle all operations.