Package world.mappable.mapkit
Class MapKitFactory
java.lang.Object
↳ world.mappable.mapkit.MapKitFactory
final class MapKitFactory
Summary
Constructors
Signature and Description |
Methods
Type and modifiers |
Method and Description |
|
initialize(android.content.Context context) |
|
setApiKey(@NonNull java.lang.String apiKey) |
|
setLocale(@Nullable java.lang.String locale) |
|
setUserId(java.lang.String userId) |
|
initializeBackgroundDownload(android.content.Context context, |
|
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, |
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() |