iOS高德地图SDK(3D) V11.2.0001

MATraceManager.h
Go to the documentation of this file.
1 //
2 // MATraceManager.h
3 // MAMapKit
4 //
5 // Created by shaobin on 16/9/1.
6 // Copyright © 2016年 Amap. All rights reserved.
7 //
8
9
10
11 #import "MAConfig.h"
12
13 #if MA_INCLUDE_TRACE_CORRECT
14
15 #import <Foundation/Foundation.h>
16 #import <AMapFoundationKit/AMapFoundationKit.h>
17 #import "MATraceLocation.h"
18
19 @class MATraceManager;
20
23 typedef void(^MAProcessingCallback)(int index, NSArray<MATracePoint *> *points);
24
27 typedef void(^MAFinishCallback)(NSArray<MATracePoint *> *points, double distance);
28
31 typedef void(^MAFailedCallback)(int errorCode, NSString *errorDesc);
32
35 typedef void(^MATraceLocationCallback)(NSArray<CLLocation *> *locations, NSArray<MATracePoint *> *tracePoints, double distance, NSError *error);
36
41 @protocol MATraceDelegate <NSObject>
42
43 @required
44
59 - (void)traceManager:(MATraceManager *)manager
60 didTrace:(NSArray<CLLocation *> *)locations
61 correct:(NSArray<MATracePoint *> *)tracePoints
62 distance:(double)distance
63 withError:(NSError *)error;
64
65 @optional
73 - (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
74
75 @end
76
79 @interface MATraceManager : NSObject
80
85 + (instancetype)sharedInstance;
86
103 - (NSOperation *)queryProcessedTraceWith:(NSArray<MATraceLocation *>*)locations
104 type:(AMapCoordinateType)type
105 processingCallback:(MAProcessingCallback)processingCallback
106 finishCallback:(MAFinishCallback)finishCallback
107 failedCallback:(MAFailedCallback)failedCallback;
108
113 @property (nonatomic, weak) id<MATraceDelegate> delegate;
114
119 - (void)start;
120
125 - (void)stop;
126
127 @end
128
129 #endif
MAConfig.h
MATraceLocation.h
MATraceLocationCallback
void(^ MATraceLocationCallback)(NSArray< CLLocation * > *locations, NSArray< MATracePoint * > *tracePoints, double distance, NSError *error)
Definition: MATraceManager.h:35
MAFinishCallback
void(^ MAFinishCallback)(NSArray< MATracePoint * > *points, double distance)
Definition: MATraceManager.h:27
MAProcessingCallback
void(^ MAProcessingCallback)(int index, NSArray< MATracePoint * > *points)
Definition: MATraceManager.h:23
MAFailedCallback
void(^ MAFailedCallback)(int errorCode, NSString *errorDesc)
Definition: MATraceManager.h:31
MATraceLocation
Definition: MATraceLocation.h:34
MATraceManager
Definition: MATraceManager.h:80
+[MATraceManager sharedInstance]
instancetype sharedInstance()
单例方法 Singleton method
-[MATraceManager start]
void start()
开始轨迹定位, 内部使用系统CLLocationManager，distanceFilter，desiredAccuracy均为系统默认值，since v6.2.0 Start trajectory t...
MATraceManager::delegate
id< MATraceDelegate > delegate
轨迹定位的代理回调对象，配合start和stop方法使用，since v6.2.0 The delegate callback object for trajectory positioning,...
Definition: MATraceManager.h:113
-[MATraceManager stop]
void stop()
停止轨迹定位，since v6.2.0 Stop trajectory tracking. since v6.2.0
MATracePoint
Definition: MATraceLocation.h:20
MATraceDelegate-p
轨迹定位的代理协议，since v6.2.0 Proxy protocol for trajectory positioning since v6.2.0
Definition: MATraceManager.h:41
© 2017 高德信息技术有限公司 版权所有，保留所有权利。