ArcGIS Runtime SDK for iOS: AGSLayerContent.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSLayerContent.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/AGSCancelable.h>
27 
28 @class AGSLegendInfo;
29  //Required for Globals API doc
31 
38 @protocol AGSLayerContent
39 
40 
41 @required
42 
43 #pragma mark -
44 #pragma mark properties
45 
49 @property (nonatomic, assign, readonly) BOOL canChangeVisibility;
50 
54 @property (nonatomic, assign, readwrite, getter=isVisible) BOOL visible;
55 
59 @property (nonatomic, copy, readonly) NSString *name;
60 
64 @property (nonatomic, assign, readwrite) BOOL showInLegend;
65 
69 @property (nonatomic, copy, readonly) NSArray<id<AGSLayerContent>> *subLayerContents;
70 
75 @property (nullable, nonatomic, copy, readwrite) void (^subLayerContentsChangedHandler)(void);
76 
77 #pragma mark -
78 #pragma mark methods
79 
83 -(id<AGSCancelable>)fetchLegendInfosWithCompletion:(void(^)(NSArray<AGSLegendInfo*> * __nullable legendInfos, NSError * __nullable error))completion;
84 
88 -(BOOL)isVisibleAtScale:(double)scale;
89 
90 
91 @end
An individual legend element.
Definition: AGSLegendInfo.h:40
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol defining common properties and operations for layers.
Definition: AGSLayerContent.h:38
BOOL showInLegend
Definition: AGSLayerContent.h:64
BOOL canChangeVisibility
Definition: AGSLayerContent.h:49
void(^ subLayerContentsChangedHandler)(void)
BOOL visible
Definition: AGSLayerContent.h:54
NSArray< id< AGSLayerContent > > * subLayerContents
Definition: AGSLayerContent.h:69
NSString * name
Definition: AGSLayerContent.h:59