iOS高德地图SDK(搜索) V9.8.0

Loading...
Searching...
No Matches
AMapNearbySearchManager.h
Go to the documentation of this file.
1//
2// AMapNearbySearchManager.h
3// AMapSearchKit
4//
5// Created by xiaoming han on 15/8/31.
6// Copyright (c) 2015年 Amap. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "AMapNearbyUploadInfo.h"
11
12@class AMapNearbySearchManager;
13
15@protocol AMapNearbySearchManagerDelegate <NSObject>
16@optional
17
21- (AMapNearbyUploadInfo *)nearbyInfoForUploading:(AMapNearbySearchManager *)manager;
22
27- (void)onNearbyInfoUploadedWithError:(NSError *)error;
28
33- (void)onUserInfoClearedWithError:(NSError *)error;
34
35@end
36
38@interface AMapNearbySearchManager : NSObject
39
41@property (nonatomic, assign) NSTimeInterval uploadTimeInterval;
42
44@property (nonatomic, weak) id<AMapNearbySearchManagerDelegate> delegate;
45
47@property (nonatomic, readonly) BOOL isAutoUploading;
48
54+ (instancetype)sharedInstance;
55
59- (instancetype)init __attribute__((unavailable));
60
64- (void)startAutoUploadNearbyInfo;
65
69- (void)stopAutoUploadNearbyInfo;
70
76- (BOOL)uploadNearbyInfo:(AMapNearbyUploadInfo *)info __attribute((deprecated("已废弃 since 7.4.0，该功能不再支持")));
77
83- (BOOL)clearUserInfoWithID:(NSString *)userID __attribute((deprecated("已废弃 since 7.4.0，该功能不再支持")));
84
85@end
AMapNearbyUploadInfo.h
AMapNearbySearchManager
附近搜索管理类，同时只能有一个实例开启，否则可能会出现错误。
Definition AMapNearbySearchManager.h:39
+[AMapNearbySearchManager sharedInstance]
instancetype sharedInstance()
manager单例. 初始化之前请设置key，否则将无法正常使用该服务.
AMapNearbySearchManager::uploadTimeInterval
NSTimeInterval uploadTimeInterval
上传最小间隔，默认15s，最小7s。自动上传的过程中设置无效。
Definition AMapNearbySearchManager.h:41
-[AMapNearbySearchManager stopAutoUploadNearbyInfo]
void stopAutoUploadNearbyInfo()
关闭自动上传。
AMapNearbySearchManager::delegate
id< AMapNearbySearchManagerDelegate > delegate
代理对象。
Definition AMapNearbySearchManager.h:44
AMapNearbySearchManager::isAutoUploading
BOOL isAutoUploading
是否正在自动上传状态中。
Definition AMapNearbySearchManager.h:47
-[AMapNearbySearchManager init]
instancetype init()
请使用单例。
-[AMapNearbySearchManager startAutoUploadNearbyInfo]
void startAutoUploadNearbyInfo()
启动自动上传。
AMapNearbyUploadInfo
附近搜索上传信息
Definition AMapNearbyUploadInfo.h:21
© 2017 高德信息技术有限公司 版权所有，保留所有权利。