PrefetchStatusListener

public protocol PrefetchStatusListener : AnyObject

Protocol to get notified on status updates when prefetching map data.

  • Called multiple times to indicate the update progress. Invoked on the main thread.

    Declaration

    Swift

    func onProgress(percentage: Int32)

    Parameters

    percentage

    Represents a percentage of corridor data which has been downloaded.

  • Called after the geo-corridor data downloads has been completed either with success or with error. Invoked on the main thread.

    Declaration

    Swift

    func onComplete(error: MapLoaderError?)

    Parameters

    error

    Represents an error in case of a failure. If an error occurs, to resume operation, please download geo-corridor again. It is nil for an operation that succeeds.