ArcGIS Runtime SDK for iOS: AGSItem.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSItem.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18  //Required for Globals API doc
20 
21 #import <ArcGIS/AGSObject.h>
22 #import <ArcGIS/AGSImage.h>
23 
24 @class AGSEnvelope;
25 @class AGSLoadableImage;
26 
27 @protocol AGSCancelable;
28 
36 @interface AGSItem : AGSObject
37 
38 
39 #pragma mark -
40 #pragma mark initializers
41 
42 
43 
44 #pragma mark -
45 #pragma mark properties
46 
50 @property (nonatomic, copy, readonly) NSString *itemID;
51 
55 @property (nonatomic, copy, readwrite) NSString *title;
56 
60 @property (nonatomic, copy, readwrite) NSString *snippet;
61 
65 @property (nonatomic, copy, readwrite) NSString *itemDescription;
66 
70 @property (nonatomic, copy, readwrite) NSString *accessInformation;
71 
75 @property (nullable, nonatomic, strong, readwrite) AGSEnvelope *extent;
76 
80 @property (nonatomic, copy, readwrite) NSArray<NSString*> *tags;
81 
85 @property (nonatomic, copy, readwrite) NSString *spatialReferenceName;
86 
90 @property (nullable, nonatomic, strong, readonly) NSDate *created;
91 
95 @property (nullable, nonatomic, strong, readonly) NSDate *modified;
96 
102 @property (nullable, nonatomic, strong, readonly) AGSLoadableImage *thumbnail;
103 
109 @property (nonatomic, copy, readwrite) NSString *termsOfUse;
110 
114 @property (nonatomic, copy, readonly) NSString *name;
115 
120 @property (nonatomic, copy, readwrite) NSArray<NSString *> *typeKeywords;
121 
122 #pragma mark -
123 #pragma mark methods
124 
129 -(void)setThumbnailWithImage:(nullable AGSImage*)image;
130 
136 -(id<AGSCancelable>)fetchDataWithCompletion:(void(^)(NSData * __nullable data, NSError * __nullable error))completion;
137 
153 -(id<AGSCancelable>)updateItemPropertiesWithCompletion:(nullable void(^)(NSError * __nullable error))completion;
154 
155 
156 @end
NSString * itemDescription
Definition: AGSItem.h:65
NSString * title
Definition: AGSItem.h:55
NSString * snippet
Definition: AGSItem.h:60
NSString * accessInformation
Definition: AGSItem.h:70
NSString * spatialReferenceName
Definition: AGSItem.h:85
An image that is loaded asynchronously.
Definition: AGSLoadableImage.h:27
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:47
NSArray< NSString * > * tags
Definition: AGSItem.h:80
NSDate * created
Definition: AGSItem.h:90
Definition: AGSObject.h:21
NSString * itemID
Definition: AGSItem.h:50
AGSEnvelope * extent
Definition: AGSItem.h:75
Object representing a unit of content.
Definition: AGSItem.h:36
NSString * termsOfUse
Definition: AGSItem.h:109
NSArray< NSString * > * typeKeywords
Definition: AGSItem.h:120
AGSLoadableImage * thumbnail
Definition: AGSItem.h:102
NSString * name
Definition: AGSItem.h:114
NSDate * modified
Definition: AGSItem.h:95
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32