CatalogsUpdateInfoCallback (API Reference)
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.
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 Summary
Modifier and TypeMethodDescriptionvoidapply(MapLoaderError error, List<CatalogUpdateInfo> catalogs) This method will be called on the main thread whenMapUpdater.retrieveCatalogsUpdateInfo(com.here.sdk.maploader.CatalogsUpdateInfoCallback)has been completed.
-
Method Details
-
apply
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 benullat the same time - or notnullat the same time. An emptyCatalogUpdateInfolist represent no map updates.- Parameters:
error-Represents an error in case of a failure. It is
nullfor an operation that succeeds.catalogs-Represents a list of all catalogs that can be updated. It is
nullin case of an error.
-