MapTrip SDK Android Manual 9.8.8
DataSetHelper Class Reference
+ Inheritance diagram for DataSetHelper:

Classes

enum  DataSetAction
 

Public Member Functions

 DataSetHelper (String dataSetName, boolean isMultipleCountryDataSet, String maptripDirPath, DataSetHelperListener l)
 
 DataSetHelper (String dataSetName, DataSetHelperListener l, String maptripDirPath)
 
long getCompleteUpdateDataSize ()
 
List< DataSetCountrygetCountryData ()
 
int getInstalledCountries ()
 
boolean isOnlyDelete ()
 
boolean isUpdateAvailable ()
 
void restartDownloadSelection ()
 
void setCountryFilter (List< String > filter)
 
void startDownload ()
 
void startDownloadSelection ()
 
void startInstall ()
 
void startQuery ()
 
void taskFinished (BaseTask task)
 
void taskProgress (BaseTask task)
 

Detailed Description

information and can be updated from time to time If the check sees a mandatory update the update of the map must be done by the application

Constructor & Destructor Documentation

◆ DataSetHelper() [1/2]

DataSetHelper ( String  dataSetName,
boolean  isMultipleCountryDataSet,
String  maptripDirPath,
DataSetHelperListener  l 
)

◆ DataSetHelper() [2/2]

DataSetHelper ( String  dataSetName,
DataSetHelperListener  l,
String  maptripDirPath 
)

Member Function Documentation

◆ getCompleteUpdateDataSize()

long getCompleteUpdateDataSize ( )

◆ getCountryData()

List< DataSetCountry > getCountryData ( )

◆ getInstalledCountries()

int getInstalledCountries ( )

◆ isOnlyDelete()

boolean isOnlyDelete ( )

return true if selection of dataset will only delete

◆ isUpdateAvailable()

boolean isUpdateAvailable ( )

◆ restartDownloadSelection()

void restartDownloadSelection ( )

◆ setCountryFilter()

void setCountryFilter ( List< String >  filter)

counties in the list will appear as downloadable - e.g: for licence limitations

Parameters
filter- List if 3Letter ISO countries that will be ignored

◆ startDownload()

void startDownload ( )

download the data from the update package

◆ startDownloadSelection()

void startDownloadSelection ( )

◆ startInstall()

void startInstall ( )

start installation. after successful install the api must be reinitialized to work correctly. don't call startInstall with a running map. Be sure that no API function is called when calling startInstall()!!!!!

◆ startQuery()

void startQuery ( )

start query to check every dataset ( in dataSetHelperFile )if an update is available

◆ taskFinished()

void taskFinished ( BaseTask  task)

Called as soon as the task is finished.

Parameters
task- the task that is calculated, it can be used to obtain the return value and dependent on the task, a possible result object

Implements TaskListener.

◆ taskProgress()

void taskProgress ( BaseTask  task)

regularly called while the task is progressing. The calling frequency depends on the specific calculation of the task.

Parameters
task- the task that is calculated, it can be used to obtain the progress value

Implements TaskListener.


The documentation for this class was generated from the following file: