1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* BMKShareUrlSearch.h
* BMapKit
*
* Copyright 2014 Baidu Inc. All rights reserved.
*
*/
#import "BMKShareUrlSearchOption.h"
///分享URL结果类
@interface BMKShareURLResult :NSObject
{
NSString * _url;
}
///返回结果url
@property (nonatomic,strong) NSString* url;
@end
@protocol BMKShareURLSearchDelegate;
///短串搜索服务
@interface BMKShareURLSearch : NSObject
/// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放
@property (nonatomic, weak) id<BMKShareURLSearchDelegate> delegate;
/**
*获取poi详情短串分享url
*异步函数,返回结果在BMKShareUrlSearchDelegate的onGetPoiDetailShareURLResult通知
*@param poiDetailShareUrlSearchOption poi详情短串分享检索信息类
*@return 成功返回YES,否则返回NO
*/
- (BOOL)requestPoiDetailShareURL:(BMKPoiDetailShareURLOption *) poiDetailShareUrlSearchOption;
/**
*获取反geo短串分享url
*异步函数,返回结果在BMKShareUrlSearchDelegate的onGetLocationShareURLResult通知
*@param reverseGeoShareUrlSearchOption 反geo短串分享检索信息类
*@return 成功返回YES,否则返回NO
*/
- (BOOL)requestLocationShareURL:(BMKLocationShareURLOption *)reverseGeoShareUrlSearchOption;
@end
///搜索delegate,用于获取搜索结果
@protocol BMKShareURLSearchDelegate <NSObject>
@optional
/**
*返回poi详情分享url
*@param searcher 搜索对象
*@param result 返回结果
*@param error 错误号,@see BMKSearchErrorCode
*/
- (void)onGetPoiDetailShareURLResult:(BMKShareURLSearch *)searcher result:(BMKShareURLResult *)result errorCode:(BMKSearchErrorCode)error;
/**
*返回位置信息分享url
*@param searcher 搜索对象
*@param result 返回结果
*@param error 错误号,@see BMKSearchErrorCode
*/
- (void)onGetLocationShareURLResult:(BMKShareURLSearch *)searcher result:(BMKShareURLResult *)result errorCode:(BMKSearchErrorCode)error;
@end