PrefetchStatusListener (API Reference)
Package com.here.sdk.prefetcher
Interface PrefetchStatusListener
public interface PrefetchStatusListener
Interface to get notified on status updates when prefetching map data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(MapLoaderError error) Called after the geo-corridor data downloads has been completed either with success or with error.voidonProgress(int percentage) Called multiple times to indicate the update progress.
-
Method Details
-
onProgress
void onProgress(int percentage) Called multiple times to indicate the update progress. Invoked on the main thread.
- Parameters:
percentage-Represents a percentage of corridor data which has been downloaded.
-
onComplete
Called after the geo-corridor data downloads has been completed either with success or with error. Invoked on the main thread.
- Parameters:
error-Represents an error in case of a failure. If an error occurs, to resume operation, please download geo-corridor again. It is
nullfor an operation that succeeds.
-