【函数】 | boolean isEnabled() |
【说明】 | 是否正在监听基站定位的变化。 |
【返回】 | true或false。 |
【参数】 | 无 |
【示例】 |
alert(rexseeCellLocation.isEnabled());
运行示例
|
【函数】 | boolean enable() |
【说明】 | 开始监听,一旦位置发生变化,会触发事件onCellLocationChanged。 |
【返回】 | true或false。 |
【参数】 | 无 |
【示例】 |
alert(rexseeCellLocation.enable());
运行示例
|
【函数】 | boolean disable() |
【说明】 | 停止监听。 |
【返回】 | true或false。 |
【参数】 | 无 |
【示例】 |
alert(rexseeCellLocation.disable());
运行示例
|
【函数】 | JsonObject getLastKnownLocation() |
【说明】 | 读取基站定位数据,注意,CDMA网络和GSM网络的定位数据格式是不同的。 |
【返回】 | JSON对象,使用eval('('+json+')')转换为JavaScript对象。 |
【参数】 | 无 |
【示例】 |
alert(rexseeCellLocation.getLastKnownLocation());
运行示例
Google查询代码
Google查询
|