BMKMapManager.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * BMKMapManager.h
  3. * BMapKit
  4. *
  5. * Copyright 2011 Baidu Inc. All rights reserved.
  6. *
  7. */
  8. #import "BMKGeneralDelegate.h"
  9. #import <UIKit/UIKit.h>
  10. enum EN_PERMISSION_STATUS
  11. {
  12. E_PERMISSION_OK = 0, // 授权验证通过
  13. E_PERMISSION_SERVER_ERROR = -200, //服务端数据错误,无法解析服务端返回数据
  14. E_PERMISSION_NETWORK_ERROR = -300, //无法建立与服务端的连接
  15. };
  16. //地图模块枚举
  17. typedef enum {
  18. BMKMapModuleTile = 0, //瓦片图模块
  19. }BMKMapModule;
  20. ///主引擎类
  21. @interface BMKMapManager : NSObject
  22. /**
  23. *是否开启打印某模块的log,默认不打印log
  24. *debug时,建议打开,有利于调试程序;release时建议关闭
  25. *@param enable 是否开启
  26. *@param mapModule 地图模块
  27. */
  28. + (void)logEnable:(BOOL) enable module:(BMKMapModule) mapModule;
  29. /**
  30. *启动引擎
  31. *@param key 申请的有效key
  32. *@param delegate
  33. */
  34. -(BOOL)start:(NSString*)key generalDelegate:(id<BMKGeneralDelegate>)delegate;
  35. /**
  36. *获取所有在线服务消耗的发送流量,单位:字节
  37. */
  38. -(int)getTotalSendFlaxLength;
  39. /**
  40. *获取所有在线服务消耗的接收流量,单位:字节
  41. */
  42. -(int)getTotalRecvFlaxLength;
  43. /**
  44. *停止引擎
  45. */
  46. -(BOOL)stop;
  47. @end