ArcGIS Runtime SDK for iOS: AGSSymbol.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSSymbol.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/AGSJSONSerializable.h>
30 #import <ArcGIS/AGSColor.h>
31 #import <ArcGIS/AGSImage.h>
32 #import <ArcGIS/AGSScreen.h>
33 
34 
35 
40 typedef NS_ENUM(NSInteger, AGSSymbolAngleAlignment) {
43 };
44 
45 @class AGSGeometry;
46 
47 @protocol AGSCancelable;
48 
91 @interface AGSSymbol : AGSObject <AGSJSONSerializable, NSCopying>
92 
93 #pragma mark -
94 #pragma mark initializers
95 
96 #pragma mark -
97 #pragma mark properties
98 
99 #pragma mark -
100 #pragma mark methods
101 
106 -(id<AGSCancelable>)createSwatchWithCompletion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
107 
108 
115 -(id<AGSCancelable>)createSwatchWithBackgroundColor:(nullable AGSColor *)backgroundColor
116  screen:(nullable AGSScreen *)screen
117  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
118 
128 -(id<AGSCancelable>)createSwatchWithGeometry:(AGSGeometry *)geometry
129  width:(NSInteger)width
130  height:(NSInteger)height
131  screen:(nullable AGSScreen *)screen
132  backgroundColor:(nullable AGSColor *)backgroundColor
133  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
134 
135 -(nullable id<AGSCancelable>)createSwatchWithWidth:(NSInteger)width
136  height:(NSInteger)height
137  screen:(nullable AGSScreen *)screen
138  backgroundColor:(nullable AGSColor *)backgroundColor
139  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
140 
146 -(BOOL)isEqualToSymbol:(AGSSymbol*)other;
147 
148 @end
149 
150 
#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:42
@ 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:91
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