android 百度地图类参考 MKGeneralListener

来源:互联网 发布:suse linux snmp 编辑:程序博客网 时间:2024/05/16 10:52

接口 MKGeneralListener


public interface MKGeneralListener
一般事件通知接口。 
该接口返回网络状态,授权验证等结果,用户需要实现该接口以处理相应事件。


方法摘要

返回类型方法voidonGetNetworkState(int iError)
返回网络错误。
voidonGetPermissionState(int iError)
返回授权验证错误。

方法详细信息

onGetNetworkState

void onGetNetworkState(int iError)

返回网络错误。
参数:
iError - 错误号可能返回的错误号
MKEvent.ERROR_NETWORK_CONNECT :网络连接失败
MKEvent.ERROR_NETWORK_DATA: 网络数据包错误

onGetPermissionState

void onGetPermissionState(int iError)

返回授权验证错误。
参数:

iError - 错误号: 300,验证失败


给个链接,进去后介绍了各种类的使用

http://developer.baidu.com/map/reference/index.php?title=Class:android核心类/MKGeneralListener#onGetNetworkState

0 0