ArcGIS Runtime SDK for iOS: AGSItem.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSItem.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 #import <ArcGIS/AGSImage.h>
30 #import <ArcGIS/AGSCancelable.h>
31 
32 @class AGSEnvelope;
33 @class AGSLoadableImage;
34 
42 @interface AGSItem : AGSObject
43 
44 
45 #pragma mark -
46 #pragma mark initializers
47 
48 
49 
50 #pragma mark -
51 #pragma mark properties
52 
56 @property (nonatomic, copy, readonly) NSString *itemID;
57 
61 @property (nonatomic, copy, readwrite) NSString *title;
62 
66 @property (nonatomic, copy, readwrite) NSString *snippet;
67 
71 @property (nonatomic, copy, readwrite) NSString *itemDescription;
72 
76 @property (nonatomic, copy, readwrite) NSString *accessInformation;
77 
81 @property (nullable, nonatomic, strong, readwrite) AGSEnvelope *extent;
82 
86 @property (nonatomic, copy, readwrite) NSArray<NSString*> *tags;
87 
91 @property (nonatomic, copy, readwrite) NSString *spatialReferenceName;
92 
96 @property (nullable, nonatomic, strong, readonly) NSDate *created;
97 
101 @property (nullable, nonatomic, strong, readonly) NSDate *modified;
102 
108 @property (nullable, nonatomic, strong, readonly) AGSLoadableImage *thumbnail;
109 
115 @property (nonatomic, copy, readwrite) NSString *termsOfUse;
116 
120 @property (nonatomic, copy, readonly) NSString *name;
121 
126 @property (nonatomic, copy, readwrite) NSArray<NSString *> *typeKeywords;
127 
128 #pragma mark -
129 #pragma mark methods
130 
135 -(void)setThumbnailWithImage:(nullable AGSImage*)image;
136 
142 -(id<AGSCancelable>)fetchDataWithCompletion:(void(^)(NSData * __nullable data, NSError * __nullable error))completion;
143 
159 -(id<AGSCancelable>)updateItemPropertiesWithCompletion:(nullable void(^)(NSError * __nullable error))completion;
160 
161 
162 @end
#define AGSImage
Definition: AGSImage.h:34
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
Object representing a unit of content.
Definition: AGSItem.h:43
NSString * snippet
Definition: AGSItem.h:66
NSString * title
Definition: AGSItem.h:61
AGSEnvelope * extent
Definition: AGSItem.h:81
NSString * itemDescription
Definition: AGSItem.h:71
NSDate * modified
Definition: AGSItem.h:101
NSDate * created
Definition: AGSItem.h:96
NSString * itemID
Definition: AGSItem.h:56
NSArray< NSString * > * typeKeywords
Definition: AGSItem.h:126
NSString * spatialReferenceName
Definition: AGSItem.h:91
NSString * accessInformation
Definition: AGSItem.h:76
AGSLoadableImage * thumbnail
Definition: AGSItem.h:108
NSString * name
Definition: AGSItem.h:120
NSArray< NSString * > * tags
Definition: AGSItem.h:86
NSString * termsOfUse
Definition: AGSItem.h:115
An image that is loaded asynchronously.
Definition: AGSLoadableImage.h:35
Definition: AGSObject.h:28
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38