ArcGIS Runtime SDK for iOS: AGSSymbolStyle.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSSymbolStyle.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 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSLoadableRemoteResourceBase.h>
27 #import <ArcGIS/AGSRemoteResource.h>
28 
31 @class AGSSymbol;
32 
33 @protocol AGSCancelable;
34 @class AGSPortal;
35 @class AGSPortalItem;
36  //Required for Globals API doc
38 
56 
57 
58 
59 #pragma mark -
60 #pragma mark initializers
61 
62 
63 
69 -(instancetype)initWithURL:(NSURL*)URL;
70 
76 +(instancetype)symbolStyleWithURL:(NSURL*)URL;
77 
83 -(instancetype)initWithName:(NSString*)name;
84 
90 +(instancetype)symbolStyleWithName:(NSString*)name;
91 
99 - (instancetype)initWithPortalItem:(AGSPortalItem *)portalItem;
100 
108 + (instancetype)symbolStyleWithPortalItem:(AGSPortalItem *)portalItem;
109 
124 - (instancetype)initWithStyleName:(NSString *)styleName
125  portal:(nullable AGSPortal *)portal;
126 
141 + (instancetype)symbolStyleWithStyleName:(NSString *)styleName
142  portal:(nullable AGSPortal *)portal;
143 
144 #pragma mark -
145 #pragma mark properties
146 
150 @property (nullable, nonatomic, strong, readonly) AGSPortal *portal;
151 
161 @property (nullable, nonatomic, strong, readonly) AGSPortalItem *portalItem;
162 
166 @property (nonatomic, copy, readonly) NSString *styleName;
167 
168 #pragma mark -
169 #pragma mark methods
170 
180 -(id<AGSCancelable>)defaultSearchParametersWithCompletion:(void(^)(AGSSymbolStyleSearchParameters * __nullable searchParams, NSError * __nullable error))completion;
181 
197 -(id<AGSCancelable>)symbolForKeys:(NSArray<NSString*>*)keys completion:(void(^)(AGSSymbol * __nullable symbol, NSError * __nullable error))completion;
198 
207 -(id<AGSCancelable>)searchSymbolsWithParameters:(AGSSymbolStyleSearchParameters*)searchParameters completion:(void(^)(NSArray<AGSSymbolStyleSearchResult*> * __nullable searchResults, NSError * __nullable error))completion;
208 
209 
210 
211 
212 @end
Definition: AGSLoadableRemoteResourceBase.h:35
An Object representing a Portal for ArcGIS.
Definition: AGSPortal.h:105
Object representing a unit of content in an ArcGIS portal.
Definition: AGSPortalItem.h:93
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:91
A symbol style object.
Definition: AGSSymbolStyle.h:56
AGSPortal * portal
Definition: AGSSymbolStyle.h:150
NSString * styleName
Definition: AGSSymbolStyle.h:166
AGSPortalItem * portalItem
Definition: AGSSymbolStyle.h:161
Search parameters used to search for symbols in a symbol style.
Definition: AGSSymbolStyleSearchParameters.h:39
Results of search operations on a symbol style.
Definition: AGSSymbolStyleSearchResult.h:43
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38