ItemResourceCache

Contains information about the offline resources typically associated with a custom style of an com.arcgismaps.mapping.layers.ArcGISVectorTiledLayer. For example, an ArcGIS vector tile layer can have style resources, such as fonts and sprites.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(path: String)

Creates an instance of this object with a path to a directory containing ItemResourceCache.

Properties

Link copied to clipboard

The com.arcgismaps.mapping.LocalItem containing the ItemResourceCache's thumbnail and metadata. This property can be null if the com.arcgismaps.mapping.LocalItem is not present within the ItemResourceCache directory. If the ItemResourceCache was taken offline using ExportVectorTilesTask or com.arcgismaps.tasks.offlinemaptask.OfflineMapTask the com.arcgismaps.mapping.LocalItem will be populated from the online com.arcgismaps.mapping.PortalItem. If the ItemResourceCache was created inside a com.arcgismaps.mapping.MobileMapPackage authored from ArcGIS Pro then this property will return null.

Link copied to clipboard
val path: String?

The path to the on-disk location containing the ItemResourceCache. The path can be a directory on-disk that contains the ItemResourceCache. Alternatively, if the ItemResourceCache was loaded from a package file, such as a com.arcgismaps.mapping.MobileMapPackage, the path is to the package.

Inherited properties

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.