Package world.mappable.mapkit

Class MapKitFactory

java.lang.Object
    ↳ world.mappable.mapkit.MapKitFactory

final class MapKitFactory

Summary

Constructors

Signature and Description

MapKitFactory()

Methods

Type and modifiers

Method and Description

static synchronized void

initialize(android.content.Context context)

static synchronized void

setApiKey(@NonNull java.lang.String apiKey)

static synchronized void

setLocale(@Nullable java.lang.String locale)

static synchronized void

setUserId(java.lang.String userId)

static synchronized void

initializeBackgroundDownload(android.content.Context context,
                             world.mappable.mapkit.offline_cache.internal.BackgroundDownloadInitializer initializer)

This method checks if background downloading is needed.

static native MapKit

getInstance()

Constuctors

MapKitFactory

MapKitFactory()


Methods

initialize

void initialize(android.content.Context context)


setApiKey

void setApiKey(@NonNull java.lang.String apiKey)


setLocale

void setLocale(@Nullable java.lang.String locale)


setUserId

void setUserId(java.lang.String userId)


initializeBackgroundDownload

void initializeBackgroundDownload(android.content.Context context,
                                  world.mappable.mapkit.offline_cache.internal.BackgroundDownloadInitializer initializer)

This method checks if background downloading is needed.

If it is, the method initializes mapkit with BackgroundDownloadInitializer::initializeMapkit() and starts downloading. Else nothing happens. This method is lightweight, please invoke it from Application.onCreate.


getInstance

MapKit getInstance()


Previous
Next