MapDownloaderConstructionCallback (API Reference)
Interface MapDownloaderConstructionCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A method which is called on the main thread when MapDownloader.fromEngineAsync(com.here.sdk.core.engine.SDKNativeEngine, com.here.sdk.maploader.MapDownloaderConstructionCallback) has been completed.
The MapDownloader instance is created on a background thread to not block the calling
thread.
During construction an online connection is established to fetch configuration data for internal use. If no online connection is available, cached or default values will be used. This is only for internal reasons and has no effect on the operability of the resulting instance. When configuration data is available from the cache, construction can still take a reasonable amount of time. Applications should consider to show a loading indicator.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonMapDownloaderConstructedCompleted(MapDownloader mapDownloader) A method which is called on the main thread whenMapDownloader.fromEngineAsync(com.here.sdk.core.engine.SDKNativeEngine, com.here.sdk.maploader.MapDownloaderConstructionCallback)has been completed.
-
Method Details
-
onMapDownloaderConstructedCompleted
A method which is called on the main thread when
MapDownloader.fromEngineAsync(com.here.sdk.core.engine.SDKNativeEngine, com.here.sdk.maploader.MapDownloaderConstructionCallback)has been completed. TheMapDownloaderinstance is created on a background thread to not block the calling thread.During construction an online connection is established to fetch configuration data for internal use. If no online connection is available, cached or default values will be used. This is only for internal reasons and has no effect on the operability of the resulting instance. When configuration data is available from the cache, construction can still take a reasonable amount of time. Applications should consider to show a loading indicator.
- Parameters:
mapDownloader-Represents a constructed MapDownloader object.
-