\hypertarget{interface_b_m_k_map_manager}{}\doxysection{B\+M\+K\+Map\+Manager类 参考}
\label{interface_b_m_k_map_manager}\index{BMKMapManager@{BMKMapManager}}


主引擎类  




{\ttfamily \#import $<$B\+M\+K\+Map\+Manager.\+h$>$}

类 B\+M\+K\+Map\+Manager 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{interface_b_m_k_map_manager}
\end{center}
\end{figure}
\doxysubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_a95edf9c8fea4c61a79098641c4e9a50f}{start\+:general\+Delegate\+:}}
\item 
(N\+S\+U\+Integer) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_ac7e4b3ff7434c212e2afaf884e3776df}{get\+Total\+Send\+Flax\+Length}}
\item 
(N\+S\+U\+Integer) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_af8af38b51325ddcbc86b55f404c233f6}{get\+Total\+Recv\+Flax\+Length}}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{interface_b_m_k_map_manager_ac53850202f5017ff35c8933c171be0f1}{stop}}
\begin{DoxyCompactList}\small\item\em 停止引擎 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{类方法}
\begin{DoxyCompactItemize}
\item 
(void) + \mbox{\hyperlink{interface_b_m_k_map_manager_a7da82e1b158f15386d3f55a7b1ca0b6f}{set\+Agree\+Privacy\+:}}
\item 
(N\+S\+String $\ast$) + \mbox{\hyperlink{interface_b_m_k_map_manager_a03cd3f728c93a9950117e1703ca9fc70}{get\+C\+U\+ID}}
\begin{DoxyCompactList}\small\item\em 地图开放平台使用到的唯一标识符，since 6.\+5.\+4 \end{DoxyCompactList}\item 
(\mbox{\hyperlink{interface_b_m_k_map_manager}{B\+M\+K\+Map\+Manager}} $\ast$) + \mbox{\hyperlink{interface_b_m_k_map_manager_aeb9a7f6f8e5513664208885d260ccfe1}{shared\+Instance}}
\begin{DoxyCompactList}\small\item\em 获得实例对象 \end{DoxyCompactList}\item 
(B\+O\+OL) + \mbox{\hyperlink{interface_b_m_k_map_manager_a3de693d719d6e1525e3afa561618afab}{set\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+S\+D\+K\+:}}
\item 
(B\+M\+K\+\_\+\+C\+O\+O\+R\+D\+\_\+\+T\+Y\+PE) + \mbox{\hyperlink{interface_b_m_k_map_manager_aeff06053e7c7b7137a83ed06654e9afe}{get\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+S\+DK}}
\item 
(void) + \mbox{\hyperlink{interface_b_m_k_map_manager_a4618c1e160b10f9d7c9c2264ac046128}{log\+Enable\+:module\+:}}
\end{DoxyCompactItemize}


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

\doxysubsection{函数文档}
\mbox{\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 + (B\+M\+K\+\_\+\+C\+O\+O\+R\+D\+\_\+\+T\+Y\+PE) get\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+S\+DK \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}

获取地图\+S\+D\+K与开发者交互时使用的全局坐标类型 \begin{DoxyReturn}{返回}
坐标类型 
\end{DoxyReturn}
\mbox{\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 + (N\+S\+String $\ast$) get\+C\+U\+ID \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



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

\mbox{\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 -\/ (N\+S\+U\+Integer) get\+Total\+Recv\+Flax\+Length \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}

获取所有在线服务消耗的接收流量，单位：字节 \begin{DoxyReturn}{返回}
接收流量 
\end{DoxyReturn}
\mbox{\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 -\/ (N\+S\+U\+Integer) get\+Total\+Send\+Flax\+Length \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}

获取所有在线服务消耗的发送流量，单位：字节 \begin{DoxyReturn}{返回}
发送流量 
\end{DoxyReturn}
\mbox{\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[{(B\+O\+OL)}]{enable }\item[{module\+:(\char`\"{})}]{此方法已废弃 }\item[{(替换为\+B\+M\+K\+Base\+Log\char`\"{})}]{\+\_\+\+\_\+deprecated\+\_\+msg }\end{DoxyParamCaption}}

方法废弃 since 6.\+2.\+0，请参考\+B\+M\+K\+Base\+Log 打开某模块的日志，默认不打印日志； debug时，建议打开，有利于调试程序；release时建议关闭 
\begin{DoxyParams}{参数}
{\em enable} & 是否开启日志打印 \\
\hline
{\em map\+Module} & 开启哪个模块的日志 \\
\hline
\end{DoxyParams}
\mbox{\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[{(B\+O\+OL)}]{is\+Agree }\end{DoxyParamCaption}}

设置用户是否同意\+S\+D\+K隐私协议，默认不同意，since V6.\+5.\+1 设置为\+Y\+E\+S时才能创建\+B\+M\+K\+Search\+Base及其子类对象，否则返回nil，将影响地图\+S\+D\+K所有检索组件功能的使用 隐私政策官网链接：https\+://lbsyun.baidu.\+com/index.php?title=openprivacy 
\begin{DoxyParams}{参数}
{\em is\+Agree} & 用户是否同意\+S\+D\+K隐私协议 \\
\hline
\end{DoxyParams}
\mbox{\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 + (B\+O\+OL) set\+Coordinate\+Type\+Used\+In\+Baidu\+Map\+S\+D\+K\+: \begin{DoxyParamCaption}\item[{(B\+M\+K\+\_\+\+C\+O\+O\+R\+D\+\_\+\+T\+Y\+PE)}]{coor\+Type }\end{DoxyParamCaption}}

全局设置地图\+S\+D\+K与开发者交互时的坐标类型。 设置此坐标类型意味着2个方面的约定：
\begin{DoxyEnumerate}
\item 地图\+S\+D\+K认为开发者传入的所有坐标均为此类型；
\item 所有地图\+S\+D\+K返回给开发者的坐标均为此类型； 地图\+S\+D\+K默认使用\+B\+D09\+L\+L（\+B\+M\+K\+\_\+\+C\+O\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+B\+D09\+L\+L）坐标。 如需使用\+G\+C\+J02坐标，传入参数值为\+B\+M\+K\+\_\+\+C\+O\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+C\+O\+M\+M\+O\+N即可。 本方法不支持传入\+W\+G\+S84（\+B\+M\+K\+\_\+\+C\+O\+O\+R\+D\+T\+Y\+P\+E\+\_\+\+G\+P\+S）坐标。 
\begin{DoxyParams}{参数}
{\em coor\+Type} & 地图\+S\+D\+K全局使用的坐标类型 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
设置成功返回\+Y\+E\+S，设置失败返回\+NO 
\end{DoxyReturn}

\end{DoxyEnumerate}\mbox{\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}{B\+M\+K\+Map\+Manager}} $\ast$) shared\+Instance \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



获得实例对象 

\mbox{\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 -\/ (B\+O\+OL) start\+: \begin{DoxyParamCaption}\item[{(N\+S\+String $\ast$)}]{key }\item[{general\+Delegate\+:(id$<$ \mbox{\hyperlink{protocol_b_m_k_general_delegate-p}{B\+M\+K\+General\+Delegate}} $>$)}]{delegate }\end{DoxyParamCaption}}

启动引擎，主要是进行鉴权并初始化引擎。鉴权结果通过\+B\+M\+K\+General\+Delegate中的方法回调给开发者 
\begin{DoxyParams}{参数}
{\em key} & AK \\
\hline
{\em delegate} & 回调对象 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
参数错误或引擎内部异常则返回\+N\+O；鉴权请求发送成功则返回\+Y\+ES 
\end{DoxyReturn}
\mbox{\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 -\/ (B\+O\+OL) stop \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



停止引擎 



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