Interface CatalogsUpdateInfoCallback

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 interface CatalogsUpdateInfoCallback

This method will be called on the main thread when MapUpdater.retrieveCatalogsUpdateInfo(com.here.sdk.maploader.CatalogsUpdateInfoCallback) has been completed. The first parameter indicates an error in case of a failure. The second parameter contains the results. Both parameters cannot be null at the same time - or not null at the same time. An empty CatalogUpdateInfo list represent no map updates.

  • Method Details

    • apply

      void apply(@Nullable MapLoaderError error, @Nullable List<CatalogUpdateInfo> catalogs)

      This method will be called on the main thread when MapUpdater.retrieveCatalogsUpdateInfo(com.here.sdk.maploader.CatalogsUpdateInfoCallback) has been completed. The first parameter indicates an error in case of a failure. The second parameter contains the results. Both parameters cannot be null at the same time - or not null at the same time. An empty CatalogUpdateInfo list represent no map updates.

      Parameters:
      error -

      Represents an error in case of a failure. It is null for an operation that succeeds.

      catalogs -

      Represents a list of all catalogs that can be updated. It is null in case of an error.