public final class SKVersioningManager extends java.lang.Object implements SKVersioningService
Modifier and Type | Method and Description |
---|---|
void |
checkNewVersion(int timeoutInSeconds)
Initiates a request to check if a new maps version is detected.
|
boolean |
downloadMetaData(int versionNumber)
Generates request to download the metadata.
|
static SKVersioningManager |
getInstance() |
int |
getLocalMapVersion()
Returns the current map version used locally.
Before calling this method, make sure that [SKMaps.initializeSKMaps] or [SKMaps.initializeSKMaps] is called. |
int[] |
getLocalMapVersionArray()
Return the list of map versions the user had installed, sorted from
latest to oldest.
|
SKMapVersioningListener |
getMapVersioningListener()
Returns current SKMapVersioningListener
|
SKMetaDataListener |
getMetaDataListener()
Returns current SKMetaDataListener
|
int |
getMetaDataStatus(int versionNumber)
Checks the status for metadata.
|
java.util.List<SKVersionInformation> |
getRemoteMapVersionList()
Return an array of available map version on the server.
|
int |
getRequestedMapVersion()
Get the specific map version requested to be used.
|
SKVersionInformation |
getSKVersionInformation(int versionNumber)
Returns the information about a version
|
void |
setMapVersioningListener(SKMapVersioningListener mapVersioningListener)
Sets the update listener.
|
void |
setMetaDataListener(SKMetaDataListener listener)
Sets the listener for meta data.
|
void |
setRequestedMapVersion(int requestedMapVersion)
Set a specific map version an initialisation.
|
boolean |
updateMapsVersion(int newVersion)
Updates the maps to version.
|
public static SKVersioningManager getInstance()
public boolean updateMapsVersion(int newVersion)
SKVersioningService
updateMapsVersion
in interface SKVersioningService
newVersion
- the new version maps to be updatedpublic int getLocalMapVersion()
SKVersioningService
getLocalMapVersion
in interface SKVersioningService
public int[] getLocalMapVersionArray()
SKVersioningService
getLocalMapVersionArray
in interface SKVersioningService
public java.util.List<SKVersionInformation> getRemoteMapVersionList()
SKVersioningService
getRemoteMapVersionList
in interface SKVersioningService
public void checkNewVersion(int timeoutInSeconds)
SKVersioningService
checkNewVersion
in interface SKVersioningService
timeoutInSeconds
- number of seconds the library tries to download
the version file from the server to see if there's a new version for the
mapspublic boolean downloadMetaData(int versionNumber)
SKVersioningService
downloadMetaData
in interface SKVersioningService
versionNumber
- version number that has to be downloaded. If it has
value 0, will be used current versionpublic int getMetaDataStatus(int versionNumber)
SKVersioningService
getMetaDataStatus
in interface SKVersioningService
versionNumber
- version number that has to be tested. If it has
value 0, will be used current versionpublic void setMetaDataListener(SKMetaDataListener listener)
SKVersioningService
setMetaDataListener
in interface SKVersioningService
public SKMetaDataListener getMetaDataListener()
SKVersioningService
getMetaDataListener
in interface SKVersioningService
public void setMapVersioningListener(SKMapVersioningListener mapVersioningListener)
SKVersioningService
setMapVersioningListener
in interface SKVersioningService
public SKMapVersioningListener getMapVersioningListener()
SKVersioningService
getMapVersioningListener
in interface SKVersioningService
public SKVersionInformation getSKVersionInformation(int versionNumber)
SKVersioningService
getSKVersionInformation
in interface SKVersioningService
public int getRequestedMapVersion()
SKVersioningService
getRequestedMapVersion
in interface SKVersioningService
public void setRequestedMapVersion(int requestedMapVersion)
SKVersioningService
setRequestedMapVersion
in interface SKVersioningService
Copyright © 2014 skobbler GmbH, Luisenstr. 41, 10117 Berlin, Germany. All rights reserved.