-
- All Implemented Interfaces:
public interface DataOtaDownloaderPublic API for data ota downloader.
Obtain instances from the corresponding service factory after SDK initialization. Threading, lifecycle, and error handling are described on individual methods.
-
-
Method Summary
Modifier and Type Method Description abstract ArrayList<SpaceInfo>getSupportedSpaces()Returns supported spaces. abstract RegionDataStatusquerySpaceDataStatus(String space, Integer countryCode)Performs query space data status. abstract SpaceDataStatusquerySpaceDataStatus(String space)Performs query space data status. abstract IntegerstartDownloadSpaceData(String space)Performs start download space data. abstract IntegercancelDownloadSpaceData(String space)Performs cancel download space data. abstract IntegerapplySpaceData(String space)Performs apply space data. abstract ArrayList<RegionJobStatus>listAllSpaceJobStatuses()Performs list all space job statuses. abstract IntegerpauseDownloadSpaceData(String space)Pause downloading space data for a specific space. abstract IntegerresumeDownloadSpaceData(String space)Performs resume download space data. abstract UnitpurgeSpaceDownloadData(String space)Purge the space data download for a specific space. abstract IntegerremoveInstalledSpaceData(String space)Removes installed data for the given space. abstract BooleanisSpaceDownloadStorageSufficient(List<String> spaces)Check whether current remaining storage space is sufficient for downloading spaces. -
-
Method Detail
-
getSupportedSpaces
abstract ArrayList<SpaceInfo> getSupportedSpaces()
Returns supported spaces.
-
querySpaceDataStatus
abstract RegionDataStatus querySpaceDataStatus(String space, Integer countryCode)
Performs query space data status.
- Parameters:
space- spacecountryCode- country code
-
querySpaceDataStatus
abstract SpaceDataStatus querySpaceDataStatus(String space)
Performs query space data status.
- Parameters:
space- space
-
startDownloadSpaceData
abstract Integer startDownloadSpaceData(String space)
Performs start download space data.
- Parameters:
space- space
-
cancelDownloadSpaceData
abstract Integer cancelDownloadSpaceData(String space)
Performs cancel download space data.
- Parameters:
space- space
-
applySpaceData
abstract Integer applySpaceData(String space)
Performs apply space data.
- Parameters:
space- space
-
listAllSpaceJobStatuses
abstract ArrayList<RegionJobStatus> listAllSpaceJobStatuses()
Performs list all space job statuses.
-
pauseDownloadSpaceData
abstract Integer pauseDownloadSpaceData(String space)
Pause downloading space data for a specific space. A small amount of data for the space will be continued to download after this interface is called as the pause operation is asynchronous.
- Parameters:
space- the name of the space to pause downloading data for.
-
resumeDownloadSpaceData
abstract Integer resumeDownloadSpaceData(String space)
Performs resume download space data.
- Parameters:
space- space
-
purgeSpaceDownloadData
@WorkerThread() abstract Unit purgeSpaceDownloadData(String space)
Purge the space data download for a specific space. This interface is synchronous, it may take some time to complete, recommend not to call it in the main thread. If the space is still in downloading/download paused/applying state, purge operation will do nothing. If purge successfully, space data status from @ref querySpaceDataStatus will be reset. If purge successfully, the temporary data of the space will be removed from the local storage. If download or(and) apply job of the space exists in listAllSpaceJobStatuses, after purge successfully, the jobs of this space will be removed from the result.
- Parameters:
space- the name of the space to pause downloading data for.
-
removeInstalledSpaceData
@WorkerThread() abstract Integer removeInstalledSpaceData(String space)
Removes installed data for the given space.
This call is synchronous and may take time. Avoid calling it on the main thread.
Unlike purgeSpaceDownloadData, this method removes installed space data rather than temporary download data.
- Parameters:
space- the space name.
-
isSpaceDownloadStorageSufficient
abstract Boolean isSpaceDownloadStorageSufficient(List<String> spaces)
Check whether current remaining storage space is sufficient for downloading spaces.
- Parameters:
spaces- the space names to be downloaded.
-
-
-
-