ArcGIS Runtime SDK for iOS: AGSLocationDataSource.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSLocationDataSource.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  //Required for Globals API doc
20 
21 #import <ArcGIS/AGSObject.h>
22 
23 
24 
29 typedef NS_ENUM(NSInteger, AGSLocationDataSourceStatus) {
34 };
35 
36 @class AGSLocation;
37 @class AGSPoint;
39 
49 
50 #pragma mark -
51 #pragma mark initializers
52 
53 
54 #pragma mark -
55 #pragma mark properties
56 
60 @property (nonatomic, assign, readonly) BOOL started;
61 
65 @property (nullable, nonatomic, strong, readonly) NSError *error;
66 
70 @property (nullable, nonatomic, weak, readwrite) id<AGSLocationChangeHandlerDelegate> locationChangeHandlerDelegate;
71 
72 #pragma mark -
73 #pragma mark methods
74 
79 -(void)startWithCompletion:(nullable void(^)(NSError *__nullable error))completion;
80 
84 -(void)stop;
85 
86 @end
87 
95 
100 -(void)doStart;
101 
106 -(void)doStop;
107 
111 -(void)didStartOrFailWithError:(nullable NSError*)error;
112 
116 -(void)didStop;
117 
121 -(void)didUpdateHeading:(double)heading;
122 
126 -(void)didUpdateLocation:(AGSLocation*)location;
127 
128 @end
129 
130 #pragma mark -
131 #pragma mark Location Change Handler Delegate Methods
132 #pragma mark -
133 
146 @optional
147 
153 - (void)locationDataSource:(AGSLocationDataSource *)locationDataSource locationDidChange:(AGSLocation *)location;
154 
160 - (void)locationDataSource:(AGSLocationDataSource *)locationDataSource headingDidChange:(double)heading;
161 
167 - (void)locationDataSource:(AGSLocationDataSource *)locationDataSource statusDidChange:(AGSLocationDataSourceStatus)status;
168 
169 @end
170 
171 
Definition: AGSLocationDataSource.h:32
Represents a location update provided by a location datasource.
Definition: AGSLocation.h:34
id< AGSLocationChangeHandlerDelegate > locationChangeHandlerDelegate
Definition: AGSLocationDataSource.h:70
Definition: AGSLocationDataSource.h:31
BOOL started
Definition: AGSLocationDataSource.h:60
A category to organize subclassable aspects of AGSLocationDataSource.
Definition: AGSLocationDataSource.h:94
NSError * error
Definition: AGSLocationDataSource.h:65
Definition: AGSObject.h:21
A change handler delegate for AGSLocationDataSource.
Definition: AGSLocationDataSource.h:145
Definition: AGSLocationDataSource.h:30
Definition: AGSLocationDataSource.h:33
AGSLocationDataSourceStatus
Definition: AGSLocationDataSource.h:29
An abstract base class that provides location updates to AGSLocationDisplay.
Definition: AGSLocationDataSource.h:48
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57