ArcGIS Runtime SDK for iOS: AGSLayerContent.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSLayerContent.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 
19 #import <Foundation/Foundation.h>
20 
21 @class AGSLegendInfo;
22 
23 @protocol AGSCancelable;
24  //Required for Globals API doc
26 
33 @protocol AGSLayerContent
34 
35 
36 @required
37 
38 #pragma mark -
39 #pragma mark properties
40 
44 @property (nonatomic, assign, readonly) BOOL canChangeVisibility;
45 
49 @property (nonatomic, assign, readwrite, getter=isVisible) BOOL visible;
50 
54 @property (nonatomic, copy, readonly) NSString *name;
55 
59 @property (nonatomic, assign, readwrite) BOOL showInLegend;
60 
64 @property (nonatomic, copy, readonly) NSArray<id<AGSLayerContent>> *subLayerContents;
65 
70 @property (nullable, nonatomic, copy, readwrite) void (^subLayerContentsChangedHandler)(void);
71 
72 #pragma mark -
73 #pragma mark methods
74 
78 -(id<AGSCancelable>)fetchLegendInfosWithCompletion:(void(^)(NSArray<AGSLegendInfo*> * __nullable legendInfos, NSError * __nullable error))completion;
79 
83 -(BOOL)isVisibleAtScale:(double)scale;
84 
85 
86 @end
void(^ subLayerContentsChangedHandler)(void)
NSString * name
Definition: AGSLayerContent.h:54
BOOL canChangeVisibility
Definition: AGSLayerContent.h:44
BOOL showInLegend
Definition: AGSLayerContent.h:59
NSArray< id< AGSLayerContent > > * subLayerContents
Definition: AGSLayerContent.h:64
BOOL visible
Definition: AGSLayerContent.h:49
An individual legend element.
Definition: AGSLegendInfo.h:32
A protocol defining common properties and operations for layers.
Definition: AGSLayerContent.h:33
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32