Export Tile Cache Job
A job that exports a tile cache (.tpk or .tpkx) from a map or image service. To make an ExportTileCacheJob, use the ExportTileCacheTask as follows:
Confirm that the map or image service can export tiles by checking com.arcgismaps.arcgisservices.ArcGISMapServiceInfo.exportTilesAllowed for the legacy format and com.arcgismaps.arcgisservices.ArcGISMapServiceInfo.exportTileCacheCompactV2Allowed property for the compact version 2 format (.tpkx).
Construct and load the ExportTileCacheTask with the map or image service.
Create a com.arcgismaps.geometry.Geometry to define the area of interest that you wish to take offline.
Obtain the default ExportTileCacheParameters by calling ExportTileCacheTask.createDefaultExportTileCacheParameters with the area of interest and a minimum and maximum scale for the tile cache.
Use the ExportTileCacheParameters to create an ExportTileCacheJob by calling ExportTileCacheTask.createExportTileCacheJob. You must specify a path to a folder where the tile cache will be stored on the device.
Start the ExportTileCacheJob and monitor progress. Upon completion, the job's result returns a tile cache.
See the com.arcgismaps.tasks.Job class for full information on how to work with jobs.
Since
200.1.0
See also
Inherited properties
Inherited functions
Cancels this Job and waits for any asynchronous, server-side operations to be canceled. The job is canceled and will result in a JobStatus.Failed status after all cancellation tasks have completed. For jobs running on a server, a cancel request is sent for the associated Job.serverJobId. You should always cancel unneeded jobs (for example when exiting your app) to avoid placing unnecessary load on the server. Examples of server-side jobs include:
Initiates a request to check the server status. If the job is polling the server for status and is in a time gap, then calling this method will ensure a request is sent right away. The result can be false if the job is not checking server status for example if the job status is paused or uploading.