ArcGIS Runtime SDK for iOS: AGSOfflineMapSyncTask.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSOfflineMapSyncTask.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/AGSLoadableBase.h>
27 #import <ArcGIS/AGSCancelable.h>
28 
29 
30 
31 @class AGSMap;
36  //Required for Globals API doc
38 
48 
49 #pragma mark -
50 #pragma mark initializers
51 
52 
53 
58 -(instancetype)initWithMap:(AGSMap*)map;
59 
65 +(instancetype)offlineMapSyncTaskWithMap:(AGSMap*)map;
66 
67 #pragma mark -
68 #pragma mark properties
69 
73 @property (nonatomic, strong, readonly) AGSMap *map;
74 
84 @property (nullable, nonatomic, strong, readonly) AGSOfflineMapUpdateCapabilities *updateCapabilities;
85 
86 #pragma mark -
87 #pragma mark methods
88 
109 -(id<AGSCancelable>)checkForUpdatesWithCompletion:(void(^)(AGSOfflineMapUpdatesInfo * __nullable result, NSError * __nullable error))completion;
110 
121 -(id<AGSCancelable>)defaultOfflineMapSyncParametersWithCompletion:(void(^)(AGSOfflineMapSyncParameters * __nullable result, NSError * __nullable error))completion;
122 
142 -(AGSOfflineMapSyncJob *)offlineMapSyncJobWithParameters:(AGSOfflineMapSyncParameters *)parameters;
143 
144 @end
145 
146 
A base class for loadables.
Definition: AGSLoadableBase.h:45
A map containing 2D geographic content.
Definition: AGSMap.h:61
A job to sync an offline map.
Definition: AGSOfflineMapSyncJob.h:49
Parameters to synchronize an offline map.
Definition: AGSOfflineMapSyncParameters.h:50
A task to sync an offline map.
Definition: AGSOfflineMapSyncTask.h:48
AGSOfflineMapUpdateCapabilities * updateCapabilities
Definition: AGSOfflineMapSyncTask.h:84
AGSMap * map
Definition: AGSOfflineMapSyncTask.h:73
Describes supported methods for obtaining updates for an offline map.
Definition: AGSOfflineMapUpdateCapabilities.h:38
Provides information on the available updates for an offline map.
Definition: AGSOfflineMapUpdatesInfo.h:51
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38