ArcGIS Runtime SDK for iOS: AGSItem.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSItem.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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 
31 @class AGSEnvelope;
32 @class AGSLoadableImage;
33 
34 @protocol AGSCancelable;
35 
43 @interface AGSItem : AGSObject
44 
45 
46 #pragma mark -
47 #pragma mark initializers
48 
49 
50 
51 #pragma mark -
52 #pragma mark properties
53 
57 @property (nonatomic, copy, readonly) NSString *itemID;
58 
62 @property (nonatomic, copy, readwrite) NSString *title;
63 
67 @property (nonatomic, copy, readwrite) NSString *snippet;
68 
72 @property (nonatomic, copy, readwrite) NSString *itemDescription;
73 
77 @property (nonatomic, copy, readwrite) NSString *accessInformation;
78 
82 @property (nullable, nonatomic, strong, readwrite) AGSEnvelope *extent;
83 
87 @property (nonatomic, copy, readwrite) NSArray<NSString*> *tags;
88 
92 @property (nonatomic, copy, readwrite) NSString *spatialReferenceName;
93 
97 @property (nullable, nonatomic, strong, readonly) NSDate *created;
98 
102 @property (nullable, nonatomic, strong, readonly) NSDate *modified;
103 
109 @property (nullable, nonatomic, strong, readonly) AGSLoadableImage *thumbnail;
110 
116 @property (nonatomic, copy, readwrite) NSString *termsOfUse;
117 
121 @property (nonatomic, copy, readonly) NSString *name;
122 
127 @property (nonatomic, copy, readwrite) NSArray<NSString *> *typeKeywords;
128 
129 #pragma mark -
130 #pragma mark methods
131 
136 -(void)setThumbnailWithImage:(nullable AGSImage*)image;
137 
143 -(id<AGSCancelable>)fetchDataWithCompletion:(void(^)(NSData * __nullable data, NSError * __nullable error))completion;
144 
160 -(id<AGSCancelable>)updateItemPropertiesWithCompletion:(nullable void(^)(NSError * __nullable error))completion;
161 
162 
163 @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:44
NSString * snippet
Definition: AGSItem.h:67
NSString * title
Definition: AGSItem.h:62
AGSEnvelope * extent
Definition: AGSItem.h:82
NSString * itemDescription
Definition: AGSItem.h:72
NSDate * modified
Definition: AGSItem.h:102
NSDate * created
Definition: AGSItem.h:97
NSString * itemID
Definition: AGSItem.h:57
NSArray< NSString * > * typeKeywords
Definition: AGSItem.h:127
NSString * spatialReferenceName
Definition: AGSItem.h:92
NSString * accessInformation
Definition: AGSItem.h:77
AGSLoadableImage * thumbnail
Definition: AGSItem.h:109
NSString * name
Definition: AGSItem.h:121
NSArray< NSString * > * tags
Definition: AGSItem.h:87
NSString * termsOfUse
Definition: AGSItem.h:116
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