ArcGIS Runtime SDK for iOS: AGSUniqueValue.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSUniqueValue.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/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 
80 #pragma mark -
81 #pragma mark properties
82 
86 @property (nonatomic, copy, readwrite) NSString *label;
87 
91 @property (nonatomic, copy, readwrite) NSString *valueDescription;
92 
96 @property (nullable, nonatomic, strong, readwrite) AGSSymbol *symbol;
97 
101 @property (nonatomic, copy, readwrite) NSArray<id> *values;
102 
103 #pragma mark -
104 #pragma mark methods
105 
111 -(BOOL)isEqualToUniqueValue:(AGSUniqueValue*)other;
112 
113 
114 @end
Definition: AGSObject.h:28
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:91
Each unique value that is symbolized differently by a unique value renderer.
Definition: AGSUniqueValue.h:42
instancetype uniqueValue()
NSString * label
Definition: AGSUniqueValue.h:86
NSArray< id > * values
Definition: AGSUniqueValue.h:101
NSString * valueDescription
Definition: AGSUniqueValue.h:91
AGSSymbol * symbol
Definition: AGSUniqueValue.h:96
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38