ArcGIS Runtime SDK for iOS: AGSItem Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSItem Class Reference

Description

Object representing a unit of content.

Subclasses represent a unit of content. The content may reside in an ArcGIS portal, or locally on disk.

See also
AGSPortalItem
Since
100
Inheritance diagram for AGSItem:
AGSObject AGSLocalItem AGSPortalItem

Instance Methods

(id< AGSCancelable >) - fetchDataWithCompletion:
 
(void) - setThumbnailWithImage:
 
(id< AGSCancelable >) - updateItemPropertiesWithCompletion:
 

Properties

NSString * accessInformation
 
NSDate * created
 
AGSEnvelopeextent
 
NSString * itemDescription
 
NSString * itemID
 
NSDate * modified
 
NSString * name
 
NSString * snippet
 
NSString * spatialReferenceName
 
NSArray< NSString * > * tags
 
NSString * termsOfUse
 
AGSLoadableImagethumbnail
 
NSString * title
 
NSArray< NSString * > * typeKeywords
 

Method Documentation

◆ fetchDataWithCompletion:

- (id<AGSCancelable>) fetchDataWithCompletion: (void(^)(NSData *__nullable data, NSError *__nullable error))  completion

Kicks off an operation to fetch the raw bytes for the item. The completion block is invoked when the operation completes successfully or if an error is encountered.

Parameters
completionblock that is invoked when operation finishes
Returns
operation which can be canceled
Since
100

◆ setThumbnailWithImage:

- (void) setThumbnailWithImage: (nullable AGSImage *)  image

Sets the thumbnail for this item.

Parameters
imageThe NSImage/UIImage representing the thumbnail. The recommended image size is 200 pixels wide by 133 pixels high. Acceptable image formats are PNG, GIF, and JPEG. The maximum file size for an image is 1 MB.
Since
100

Property Documentation

◆ accessInformation

- (NSString*) accessInformation
readwritenonatomiccopy

The access information about the item.

Since
100

◆ created

- (NSDate*) created
readnonatomicstrong

Date on which the item was first saved.

Since
100

◆ extent

- (AGSEnvelope*) extent
readwritenonatomicstrong

The default extent of the item. Only applicable to certain item types.

Since
100

◆ itemDescription

- (NSString*) itemDescription
readwritenonatomiccopy

The description of the item, if any.

Since
100

◆ itemID

- (NSString*) itemID
readnonatomiccopy

The ID of the item.

Since
100

◆ modified

- (NSDate*) modified
readnonatomicstrong

Date on which the item was modified.

Since
100

◆ name

- (NSString*) name
readnonatomiccopy

The file name of the item for file types.

Since
100.5

◆ snippet

- (NSString*) snippet
readwritenonatomiccopy

Snippet or summary of the item with a character limit of 250 characters.

Since
100

◆ spatialReferenceName

- (NSString*) spatialReferenceName
readwritenonatomiccopy

Spatial reference of the geographic content

Since
100

◆ tags

- (NSArray<NSString*>*) tags
readwritenonatomiccopy

The user defined tags that describe the specified item.

Since
100

◆ termsOfUse

- (NSString*) termsOfUse
readwritenonatomiccopy

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

Since
100.4

◆ thumbnail

- (AGSLoadableImage*) thumbnail
readnonatomicstrong

The thumbnail image of the item. The image needs to be loaded asynchronously by calling loadWithCompletion: (AGSLoadable-p)

If it is nil, there is no item thumbnail.

Since
100

◆ title

- (NSString*) title
readwritenonatomiccopy

Title of the item.

Since
100

◆ typeKeywords

- (NSArray<NSString *>*) typeKeywords
readwritenonatomiccopy

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

Since
100.5