Skip To Content ArcGIS for Developers Sign In Dashboard

LocalItem Class

class Esri::ArcGISRuntime::LocalItem

An item in a local data store such as a mobile map package. More...

Header: #include <LocalItem>
Since: Esri::ArcGISRuntime 100.0
Inherits: Esri::ArcGISRuntime::Item

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

virtual ~LocalItem() override
Esri::ArcGISRuntime::LocalItemType localItemType() const
QString originalPortalItemId() const
QString path() const
QUrl portalUrl() const

Detailed Description

Contains information about an item of content such as a mobile map, mobile scene, or mobile map package. Each item has a unique identifier, a path, and possibly the ID from the portal item that is the original source of this item.

See also MobileMapPackage.

Member Function Documentation

[override virtual] LocalItem::~LocalItem()

Destructor.

Esri::ArcGISRuntime::LocalItemType LocalItem::localItemType() const

Returns the type of this LocalItem.

QString LocalItem::originalPortalItemId() const

Returns the Portal Item ID of the original source of this LocalItem.

QString LocalItem::path() const

Returns the path of this LocalItem.

QUrl LocalItem::portalUrl() const

Returns the URL of the portal from which this local item was downloaded.

This property can be used in conjunction with the originalPortalItemId to find the URL of the portal from which this local item was downloaded. This can be useful when following offline map workflows as it allows you to find the URL of the online webmap.

This property will be empty when the local item was not created from an online resource - for example if exported from ArcGIS Pro.

This function was introduced in Esri::ArcGISRuntime 100.6.


Feedback on this topic?