HERE iOS SDK Developer's Guide

<NMAMapDataPrefetcherListener>

Protocol Summary

protocol <NMAMapDataPrefetcherListener>

Derived from: <NSObject>

An interface for responding to prefetching events sent by the NMAMapdataPrefetcher.

Include: NMAKit.framework/headers/NMAMapDataPrefetcher.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for <NMAMapDataPrefetcherListener> – <NMAMapDataPrefetcherListener>

[For complete information, see the section Protocol Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didEstimate:(NSInteger) dataSizeKB forRequestId:(NSInteger) requestId withSuccess:(BOOL) success

Called when data size estimation for a fetch is completed

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didPurgeCache:(BOOL) success

Called when there is an attempt to purge the cache

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didUpdateProgress:(float) progress forRequestId:(NSInteger) requestId

Called when there is a progress update for a prefetch request

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didUpdateStatus:( NMAPrefetchStatus ) status forRequestId:(NSInteger) requestId

Called when there is a status update for a prefetch request

Protocol Details

An interface for responding to prefetching events sent by the NMAMapdataPrefetcher.

 

Instance Method Details

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didEstimate:(NSInteger) dataSizeKB forRequestId:(NSInteger) requestId withSuccess:(BOOL) success

Called when data size estimation for a fetch is completed.

Parameters:

  • prefetcher

    The NMAMapDataPrefetcher singleton.

  • dataSizeKB

    The estimated size of the fetch request in KB. The size will be 0 on if the attempt at estimation was not successful.

  • requestId

    The id of the prefetch request.

  • success

    YES if the attempt to get an estimation was successful.

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didPurgeCache:(BOOL) success

Called when there is an attempt to purge the cache.

Parameters:

  • prefetcher

    The NMAMapDataPrefetcher singleton.

  • success

    True if the attempt to clear any unused cached map data was successful or false otherwise.

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didUpdateProgress:(float) progress forRequestId:(NSInteger) requestId

Called when there is a progress update for a prefetch request.

Parameters:

  • prefetcher

    The NMAMapDataPrefetcher singleton.

  • progress

    Amount of work completed for the request represented as a value in the range of [0..1].

  • requestId

    The id of the prefetch request.

- @optional (void) prefetcher:(nonnull NMAMapDataPrefetcher *) prefetcher didUpdateStatus:( NMAPrefetchStatus ) status forRequestId:(NSInteger) requestId

Called when there is a status update for a prefetch request.

Parameters:

  • prefetcher

    The NMAMapDataPrefetcher singleton

  • status

    The current status of the reuqest.

  • requestId

    The id of the prefetch request.