ArcGIS Runtime SDK for iOS: AGSSymbol.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSSymbol.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/AGSJSONSerializable.h>
30 #import <ArcGIS/AGSColor.h>
31 #import <ArcGIS/AGSImage.h>
32 #import <ArcGIS/AGSScreen.h>
33 #import <ArcGIS/AGSCancelable.h>
34 
35 
36 
40 typedef NS_ENUM(NSInteger, AGSSymbolAngleAlignment) {
45 };
46 
47 @class AGSGeometry;
48 
93 @interface AGSSymbol : AGSObject <AGSJSONSerializable, NSCopying>
94 
95 #pragma mark -
96 #pragma mark initializers
97 
98 #pragma mark -
99 #pragma mark properties
100 
101 #pragma mark -
102 #pragma mark methods
103 
108 -(id<AGSCancelable>)createSwatchWithCompletion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
109 
110 
117 -(id<AGSCancelable>)createSwatchWithBackgroundColor:(nullable AGSColor *)backgroundColor
118  screen:(nullable AGSScreen *)screen
119  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
120 
137 -(id<AGSCancelable>)createSwatchWithGeometry:(AGSGeometry *)geometry
138  width:(NSInteger)width
139  height:(NSInteger)height
140  screen:(nullable AGSScreen *)screen
141  backgroundColor:(nullable AGSColor *)backgroundColor
142  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
143 
144 -(nullable id<AGSCancelable>)createSwatchWithWidth:(NSInteger)width
145  height:(NSInteger)height
146  screen:(nullable AGSScreen *)screen
147  backgroundColor:(nullable AGSColor *)backgroundColor
148  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
149 
155 -(BOOL)isEqualToSymbol:(AGSSymbol*)other;
156 
157 @end
158 
159 
#define AGSColor
Definition: AGSColor.h:34
#define AGSImage
Definition: AGSImage.h:34
#define AGSScreen
Definition: AGSScreen.h:34
AGSSymbolAngleAlignment
Definition: AGSSymbol.h:40
@ AGSSymbolAngleAlignmentScreen
Definition: AGSSymbol.h:43
@ AGSSymbolAngleAlignmentMap
Definition: AGSSymbol.h:41
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
Definition: AGSObject.h:28
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:93
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38