Class BackgroundDownloadManager

com.yandex.mapkit.offline_cache

public class BackgroundDownloadManager

Attention.

This feature is not available in the free MapKit version.

Methods

void initialize(@NonNull final Context context, @Nullable DownloadNotificationsListener listener)

This method checks if background downloading is needed.

Method Detail

initialize

public static void initialize (@NonNull final Context context, @Nullable DownloadNotificationsListener listener)

This method checks if background downloading is needed.

If it is, the method initializes mapkit and starts downloading. Else nothing happens. This method is lightweight, please invoke it from Application.onCreate.
Parameters:
listener

will be notified when downloads have started. Warning: after MapKit initialization this method becomes useless.