ArcGIS Runtime SDK for iOS: AGSUniqueValue.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSUniqueValue.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 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSObject.h>
27 #import <ArcGIS/AGSJSONSerializable.h>
28 
29 @class AGSSymbol;
30  //Required for Globals API doc
32 
42 @interface AGSUniqueValue : AGSObject <AGSJSONSerializable, NSCopying>
43 
44 
45 #pragma mark -
46 #pragma mark initializers
47 
52 +(instancetype)uniqueValue;
53 
62 -(instancetype)initWithDescription:(NSString *)description
63  label:(NSString *)label
64  symbol:(AGSSymbol *)symbol
65  values:(NSArray<id> *)values;
66 
75 +(instancetype)uniqueValueWithDescription:(NSString *)description
76  label:(NSString *)label
77  symbol:(AGSSymbol *)symbol
78  values:(NSArray<id> *)values;
79 
100 - (instancetype)initWithDescription:(NSString *)description
101  label:(NSString *)label
102  symbol:(nullable AGSSymbol *)symbol
103  values:(NSArray<id> *)values
104  alternateSymbols:(NSArray<AGSSymbol *> *)alternateSymbols;
105 
126 + (instancetype)uniqueValueWithDescription:(NSString *)description
127  label:(NSString *)label
128  symbol:(nullable AGSSymbol *)symbol
129  values:(NSArray<id> *)values
130  alternateSymbols:(NSArray<AGSSymbol *> *)alternateSymbols;
131 
132 #pragma mark -
133 #pragma mark properties
134 
138 @property (nonatomic, copy, readwrite) NSString *label;
139 
143 @property (nonatomic, copy, readwrite) NSString *valueDescription;
144 
148 @property (nullable, nonatomic, strong, readwrite) AGSSymbol *symbol;
149 
153 @property (nonatomic, copy, readwrite) NSArray<id> *values;
154 
158 @property (nonatomic, copy, readwrite) NSArray<AGSSymbol *> *alternateSymbols;
159 
160 #pragma mark -
161 #pragma mark methods
162 
168 -(BOOL)isEqualToUniqueValue:(AGSUniqueValue*)other;
169 
170 
171 @end
Definition: AGSObject.h:28
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:93
Each unique value that is symbolized differently by a unique value renderer.
Definition: AGSUniqueValue.h:42
instancetype uniqueValue()
NSArray< AGSSymbol * > * alternateSymbols
Definition: AGSUniqueValue.h:158
NSString * label
Definition: AGSUniqueValue.h:138
NSArray< id > * values
Definition: AGSUniqueValue.h:153
NSString * valueDescription
Definition: AGSUniqueValue.h:143
AGSSymbol * symbol
Definition: AGSUniqueValue.h:148
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38