ArcGIS Runtime SDK for iOS: AGSSymbol.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSSymbol.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/AGSJSONSerializable.h>
23 #import <ArcGIS/AGSColor.h>
24 #import <ArcGIS/AGSImage.h>
25 #import <ArcGIS/AGSScreen.h>
26 
27 
28 
33 typedef NS_ENUM(NSInteger, AGSSymbolAngleAlignment) {
36 };
37 
38 @class AGSGeometry;
39 
40 @protocol AGSCancelable;
41 
51 @interface AGSSymbol : AGSObject <AGSJSONSerializable, NSCopying>
52 
53 #pragma mark -
54 #pragma mark initializers
55 
56 #pragma mark -
57 #pragma mark properties
58 
59 #pragma mark -
60 #pragma mark methods
61 
66 -(id<AGSCancelable>)createSwatchWithCompletion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
67 
68 
75 -(id<AGSCancelable>)createSwatchWithBackgroundColor:(nullable AGSColor *)backgroundColor
76  screen:(nullable AGSScreen *)screen
77  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
78 
88 -(id<AGSCancelable>)createSwatchWithGeometry:(AGSGeometry *)geometry
89  width:(NSInteger)width
90  height:(NSInteger)height
91  screen:(nullable AGSScreen *)screen
92  backgroundColor:(nullable AGSColor *)backgroundColor
93  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
94 
95 -(nullable id<AGSCancelable>)createSwatchWithWidth:(NSInteger)width
96  height:(NSInteger)height
97  screen:(nullable AGSScreen *)screen
98  backgroundColor:(nullable AGSColor *)backgroundColor
99  completion:(void(^)(AGSImage * __nullable swatch, NSError * __nullable error))completion;
100 
106 -(BOOL)isEqualToSymbol:(AGSSymbol*)other;
107 
108 @end
109 
110 
Definition: AGSSymbol.h:35
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:51
AGSSymbolAngleAlignment
Definition: AGSSymbol.h:33
Definition: AGSSymbol.h:34
Definition: AGSObject.h:21
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:32
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32