\doxysection{BMKMap\+Manager类 参考}
\hypertarget{interface_b_m_k_map_manager}{}\label{interface_b_m_k_map_manager}\index{BMKMapManager@{BMKMapManager}}


主引擎类  




{\ttfamily \#include $<$BMKMap\+Manager.\+h$>$}

类 BMKMap\+Manager 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{interface_b_m_k_map_manager}
\end{center}
\end{figure}
\doxysubsubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(BOOL) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_a95edf9c8fea4c61a79098641c4e9a50f}{start\+:general\+Delegate\+:}}
\item 
(NSUInteger) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_ac7e4b3ff7434c212e2afaf884e3776df}{get\+Total\+Send\+Flax\+Length}}
\item 
(NSUInteger) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_af8af38b51325ddcbc86b55f404c233f6}{get\+Total\+Recv\+Flax\+Length}}
\item 
(BOOL) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_ac53850202f5017ff35c8933c171be0f1}{stop}}
\begin{DoxyCompactList}\small\item\em 停止引擎 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{类方法}
\begin{DoxyCompactItemize}
\item 
(void) + \mbox{\hyperlink{interface_b_m_k_map_manager_a7da82e1b158f15386d3f55a7b1ca0b6f}{set\+Agree\+Privacy\+:}}
\item 
(NSString \texorpdfstring{$\ast$}{*}) + \mbox{\hyperlink{interface_b_m_k_map_manager_a03cd3f728c93a9950117e1703ca9fc70}{get\+CUID}}
\begin{DoxyCompactList}\small\item\em 地图开放平台使用到的唯一标识符，since 6.\+5.\+4 \end{DoxyCompactList}\item 
(\mbox{\hyperlink{interface_b_m_k_map_manager}{BMKMap\+Manager}} \texorpdfstring{$\ast$}{*}) + \mbox{\hyperlink{interface_b_m_k_map_manager_aeb9a7f6f8e5513664208885d260ccfe1}{shared\+Instance}}
\begin{DoxyCompactList}\small\item\em 获得实例对象 \end{DoxyCompactList}\item 
(BOOL) + \mbox{\hyperlink{interface_b_m_k_map_manager_a3de693d719d6e1525e3afa561618afab}{set\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+SDK\+:}}
\item 
(BMK\+\_\+\+COORD\+\_\+\+TYPE) + \mbox{\hyperlink{interface_b_m_k_map_manager_aeff06053e7c7b7137a83ed06654e9afe}{get\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+SDK}}
\item 
(void) + \mbox{\hyperlink{interface_b_m_k_map_manager_a4618c1e160b10f9d7c9c2264ac046128}{log\+Enable\+:module\+:}}
\end{DoxyCompactItemize}


\doxysubsection{详细描述}
主引擎类 

\doxysubsection{函数文档}
\Hypertarget{interface_b_m_k_map_manager_aeff06053e7c7b7137a83ed06654e9afe}\label{interface_b_m_k_map_manager_aeff06053e7c7b7137a83ed06654e9afe} 
\index{BMKMapManager@{BMKMapManager}!getCoordinateTypeUsedInBaiduMapSDK@{getCoordinateTypeUsedInBaiduMapSDK}}
\index{getCoordinateTypeUsedInBaiduMapSDK@{getCoordinateTypeUsedInBaiduMapSDK}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{getCoordinateTypeUsedInBaiduMapSDK}{getCoordinateTypeUsedInBaiduMapSDK}}
{\footnotesize\ttfamily + (BMK\+\_\+\+COORD\+\_\+\+TYPE) get\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+SDK \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}

获取地图\+SDK与开发者交互时使用的全局坐标类型 \begin{DoxyReturn}{返回}
坐标类型 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_map_manager_a03cd3f728c93a9950117e1703ca9fc70}\label{interface_b_m_k_map_manager_a03cd3f728c93a9950117e1703ca9fc70} 
\index{BMKMapManager@{BMKMapManager}!getCUID@{getCUID}}
\index{getCUID@{getCUID}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{getCUID}{getCUID}}
{\footnotesize\ttfamily + (NSString \texorpdfstring{$\ast$}{*}) get\+CUID \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



地图开放平台使用到的唯一标识符，since 6.\+5.\+4 

\Hypertarget{interface_b_m_k_map_manager_af8af38b51325ddcbc86b55f404c233f6}\label{interface_b_m_k_map_manager_af8af38b51325ddcbc86b55f404c233f6} 
\index{BMKMapManager@{BMKMapManager}!getTotalRecvFlaxLength@{getTotalRecvFlaxLength}}
\index{getTotalRecvFlaxLength@{getTotalRecvFlaxLength}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{getTotalRecvFlaxLength}{getTotalRecvFlaxLength}}
{\footnotesize\ttfamily -\/ (NSUInteger) get\+Total\+Recv\+Flax\+Length \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}

获取所有在线服务消耗的接收流量，单位：字节 \begin{DoxyReturn}{返回}
接收流量 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_map_manager_ac7e4b3ff7434c212e2afaf884e3776df}\label{interface_b_m_k_map_manager_ac7e4b3ff7434c212e2afaf884e3776df} 
\index{BMKMapManager@{BMKMapManager}!getTotalSendFlaxLength@{getTotalSendFlaxLength}}
\index{getTotalSendFlaxLength@{getTotalSendFlaxLength}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{getTotalSendFlaxLength}{getTotalSendFlaxLength}}
{\footnotesize\ttfamily -\/ (NSUInteger) get\+Total\+Send\+Flax\+Length \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}

获取所有在线服务消耗的发送流量，单位：字节 \begin{DoxyReturn}{返回}
发送流量 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_map_manager_a4618c1e160b10f9d7c9c2264ac046128}\label{interface_b_m_k_map_manager_a4618c1e160b10f9d7c9c2264ac046128} 
\index{BMKMapManager@{BMKMapManager}!logEnable:module:@{logEnable:module:}}
\index{logEnable:module:@{logEnable:module:}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{logEnable:module:}{logEnable:module:}}
{\footnotesize\ttfamily + (void) log\+Enable\+: \begin{DoxyParamCaption}\item[{(BOOL)}]{enable }\item[{module\+:("{})}]{此方法已废弃 }\item[{(替换为\+BMKBase\+Log"{})}]{\+\_\+\+\_\+deprecated\+\_\+msg }\end{DoxyParamCaption}}

方法废弃 since 6.\+2.\+0，请参考\+BMKBase\+Log 打开某模块的日志，默认不打印日志； debug时，建议打开，有利于调试程序；release时建议关闭 
\begin{DoxyParams}{参数}
{\em enable} & 是否开启日志打印 \\
\hline
{\em map\+Module} & 开启哪个模块的日志 \\
\hline
\end{DoxyParams}
\Hypertarget{interface_b_m_k_map_manager_a7da82e1b158f15386d3f55a7b1ca0b6f}\label{interface_b_m_k_map_manager_a7da82e1b158f15386d3f55a7b1ca0b6f} 
\index{BMKMapManager@{BMKMapManager}!setAgreePrivacy:@{setAgreePrivacy:}}
\index{setAgreePrivacy:@{setAgreePrivacy:}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{setAgreePrivacy:}{setAgreePrivacy:}}
{\footnotesize\ttfamily + (void) set\+Agree\+Privacy\+: \begin{DoxyParamCaption}\item[{(BOOL)}]{is\+Agree }\end{DoxyParamCaption}}

设置用户是否同意\+SDK隐私协议，默认不同意，since V6.\+5.\+1 设置为\+YES时才能创建\+BMKSearch\+Base及其子类对象，否则返回nil，将影响地图\+SDK所有检索组件功能的使用 隐私政策官网链接：https\+://lbsyun.baidu.\+com/index.php?title=openprivacy 
\begin{DoxyParams}{参数}
{\em is\+Agree} & 用户是否同意\+SDK隐私协议 \\
\hline
\end{DoxyParams}
\Hypertarget{interface_b_m_k_map_manager_a3de693d719d6e1525e3afa561618afab}\label{interface_b_m_k_map_manager_a3de693d719d6e1525e3afa561618afab} 
\index{BMKMapManager@{BMKMapManager}!setCoordinateTypeUsedInBaiduMapSDK:@{setCoordinateTypeUsedInBaiduMapSDK:}}
\index{setCoordinateTypeUsedInBaiduMapSDK:@{setCoordinateTypeUsedInBaiduMapSDK:}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{setCoordinateTypeUsedInBaiduMapSDK:}{setCoordinateTypeUsedInBaiduMapSDK:}}
{\footnotesize\ttfamily + (BOOL) set\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+SDK\+: \begin{DoxyParamCaption}\item[{(BMK\+\_\+\+COORD\+\_\+\+TYPE)}]{coor\+Type }\end{DoxyParamCaption}}

全局设置地图\+SDK与开发者交互时的坐标类型。 设置此坐标类型意味着2个方面的约定：
\begin{DoxyEnumerate}
\item 地图\+SDK认为开发者传入的所有坐标均为此类型；
\item 所有地图\+SDK返回给开发者的坐标均为此类型； 地图\+SDK默认使用\+BD09\+LL（\+BMK\+\_\+\+COORDTYPE\+\_\+\+BD09\+LL）坐标。 如需使用\+GCJ02坐标，传入参数值为\+BMK\+\_\+\+COORDTYPE\+\_\+\+COMMON即可。 本方法不支持传入\+WGS84（\+BMK\+\_\+\+COORDTYPE\+\_\+\+GPS）坐标。 
\begin{DoxyParams}{参数}
{\em coor\+Type} & 地图\+SDK全局使用的坐标类型 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
设置成功返回\+YES，设置失败返回\+NO 
\end{DoxyReturn}

\end{DoxyEnumerate}\Hypertarget{interface_b_m_k_map_manager_aeb9a7f6f8e5513664208885d260ccfe1}\label{interface_b_m_k_map_manager_aeb9a7f6f8e5513664208885d260ccfe1} 
\index{BMKMapManager@{BMKMapManager}!sharedInstance@{sharedInstance}}
\index{sharedInstance@{sharedInstance}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{sharedInstance}{sharedInstance}}
{\footnotesize\ttfamily + (\mbox{\hyperlink{interface_b_m_k_map_manager}{BMKMap\+Manager}} \texorpdfstring{$\ast$}{*}) shared\+Instance \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



获得实例对象 

\Hypertarget{interface_b_m_k_map_manager_a95edf9c8fea4c61a79098641c4e9a50f}\label{interface_b_m_k_map_manager_a95edf9c8fea4c61a79098641c4e9a50f} 
\index{BMKMapManager@{BMKMapManager}!start:generalDelegate:@{start:generalDelegate:}}
\index{start:generalDelegate:@{start:generalDelegate:}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{start:generalDelegate:}{start:generalDelegate:}}
{\footnotesize\ttfamily -\/ (BOOL) start\+: \begin{DoxyParamCaption}\item[{(NSString \texorpdfstring{$\ast$}{*})}]{key }\item[{general\+Delegate\+:(id$<$ \mbox{\hyperlink{protocol_b_m_k_general_delegate-p}{BMKGeneral\+Delegate}} $>$)}]{delegate }\end{DoxyParamCaption}}

启动引擎，主要是进行鉴权并初始化引擎。鉴权结果通过\+BMKGeneral\+Delegate中的方法回调给开发者 
\begin{DoxyParams}{参数}
{\em key} & AK \\
\hline
{\em delegate} & 回调对象 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
参数错误或引擎内部异常则返回\+NO；鉴权请求发送成功则返回\+YES 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_map_manager_ac53850202f5017ff35c8933c171be0f1}\label{interface_b_m_k_map_manager_ac53850202f5017ff35c8933c171be0f1} 
\index{BMKMapManager@{BMKMapManager}!stop@{stop}}
\index{stop@{stop}!BMKMapManager@{BMKMapManager}}
\doxysubsubsection{\texorpdfstring{stop}{stop}}
{\footnotesize\ttfamily -\/ (BOOL) stop \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



停止引擎 



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
Baidu\+Map\+API\+\_\+\+Base.\+framework/\+Headers/\mbox{\hyperlink{_b_m_k_map_manager_8h}{BMKMap\+Manager.\+h}}\end{DoxyCompactItemize}
