Show / Hide Table of Contents

Class ExportTileCacheJob

A job that exports a tile cache (.tpk or .tpkx) from a map or image service.

Inheritance
System.Object
Job<TileCache>
ExportTileCacheJob
Job<TileCache>.Messages
Job<TileCache>.Error
Job<TileCache>.GetResultAsync()
Job<TileCache>.ServerJobId
Job<TileCache>.Status
Job<TileCache>.Progress
Job<TileCache>.CancelAsync()
Job<TileCache>.Pause()
Job<TileCache>.Start()
Job<TileCache>.ToJson()
Job<TileCache>.CheckStatusAsync()
Job<TileCache>.ProgressChanged
Job<TileCache>.MessageAdded
Job<TileCache>.StatusChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ExportTileCacheJob : Job<TileCache>
Remarks

To make an ExportTileCacheJob, use the ExportTileCacheTask as follows:

  • Confirm that the map or image service can export tiles by checking ExportTilesAllowed for the legacy format and ExportTileCacheCompactV2Allowed property for the compact version 2 format (.tpkx).
  • Create and load the ExportTileCacheTask with the map or image service.
  • Create a Geometry to define the area of interest that you wish to take offline.
  • Obtain the default ExportTileCacheParameters by calling CreateDefaultExportTileCacheParametersAsync(Geometry, Double, Double) with the area of interest and a minimum and maximum scale for the tile cache.
  • Use the ExportTileCacheParameters to create an ExportTileCacheJob by calling ExportTileCache(ExportTileCacheParameters, String). 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 Job<T> class for full information on how to work with jobs.

Methods

Name Description
FromJson(String)

Creates a job from JSON.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Export tiles: Download tiles to a local tile cache file stored on the device.
In This Article
Back to top Copyright © 2022 Esri.