LocalItem

class LocalItem : Item

An object that represents a local item.

Since

200.1.0

See also

Properties

Link copied to clipboard

The original portal item ID.

Link copied to clipboard
var path: String?

The local item path. This path can be empty when the item is contained within a MobileMapPackage or MobileScenePackage.

Link copied to clipboard

The URL of the portal from which this local item was downloaded. This property can be used in conjunction with the LocalItem.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.

Link copied to clipboard

The local item type.

Inherited properties

Link copied to clipboard

The information on the source of the item and its copyright status.

Link copied to clipboard

The date the item was created.

Link copied to clipboard

The description of the specified item.

Link copied to clipboard

The extent of the specified item.

Link copied to clipboard

The item ID of the specified item. Item ID can only be set on not loaded item.

Link copied to clipboard

The date the item was last modified.

Link copied to clipboard

The name of this item.

Link copied to clipboard

The short summary description of the specified item. A short summary description of the item.

Link copied to clipboard

The spatial reference name of the specified item. The coordinate system of the specified item.

Link copied to clipboard

The user defined tags that describe the specified item.

Link copied to clipboard

The terms of use of the item. It is stored in the "licenseInfo" property in json. The property can contain HTML markup.

Link copied to clipboard

The thumbnail of the item.

Link copied to clipboard

The title of the specified item. This is the name that's displayed to users and by which they refer to the item. Every item must have a title.

Link copied to clipboard

An array of keywords that further describes the type of this item. Each item is tagged with a set of type keywords that are derived based on its primary type. The type keywords of the specified item.

Functions

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

Executes an asynchronous operation to update any item properties that have been changed (using the setter methods). This causes the values that have been changed to be updated on the portal (for PortalItems) or on disk (for LocalItems).

Inherited functions

Link copied to clipboard
suspend fun fetchData(): Result<ByteArray>

Fetches the item's data.

Link copied to clipboard

Sets the thumbnail of the item with the specified image. This method invokes Bitmap.compress and may be long running.