com.supermap.data
Interface MapCacheListener
-
public interface MapCacheListener
MapCacheListener is a listener for receiving map precache event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
onCacheStatus(int downloadCount, long totalCount)
Detailed progress information, feedback to the user has downloaded the number of cache nDownLoadCout, the total number of accounts nTotalCountvoid
onChecked()
Triggered if consecutive 10 pictures are failed to download, in this case, you need to check the network, You can also define the number of consecutive 10 failure pictures.void
onComplete(int nFailedCount)
Callback when precache completes.void
onProgress(int nStep)
The step value ranges from 1 to 100.
-
-
-
Method Detail
-
onComplete
void onComplete(int nFailedCount)
Callback when precache completes. Users know that how many images failed to download from nFailedCount. Note that the interface is not called when the cache is stopped (invoked
DatasetImage.MapCacheService.stopDownload()
)- Parameters:
nFailedCount
- Number of failed download pictures
-
onProgress
void onProgress(int nStep)
The step value ranges from 1 to 100. Every step will inform users.- Parameters:
nStep
- Progress value
-
onChecked
void onChecked()
Triggered if consecutive 10 pictures are failed to download, in this case, you need to check the network, You can also define the number of consecutive 10 failure pictures. After it reaches the number you define, the system will inform you to stop precaching.
-
onCacheStatus
void onCacheStatus(int downloadCount, long totalCount)
Detailed progress information, feedback to the user has downloaded the number of cache nDownLoadCout, the total number of accounts nTotalCount- Parameters:
downloadCount
- Number of cached imagestotalCount
- The total number of images that need to be cached
-
-