类 BDNotifyListener
- java.lang.Object
-
- com.baidu.location.BDNotifyListener
-
public abstract class BDNotifyListener extends java.lang.Object
位置提醒功能,可供地理围栏需求比较小的开发者使用
-
-
字段概要
字段 修饰符和类型 字段 说明 float
differDistance
已废弃boolean
isAdded
java.lang.String
mCoorType
围栏坐标类型double
mLatitude
围栏中心点纬度坐标double
mLatitudeC
double
mLongitude
围栏中心点经度坐标double
mLongitudeC
com.baidu.location.notify.NotifyCache
mNotifyCache
float
mRadius
围栏半径int
Notified
-
构造器概要
构造器 构造器 说明 BDNotifyListener()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
onNotify(BDLocation mlocation, float distance)
位置提醒回调函数void
SetNotifyLocation(double latitude, double longitude, float radius, java.lang.String coorType)
设置位置提醒的点的相关参数,
-
-
-
字段详细资料
-
mLatitude
public double mLatitude
围栏中心点纬度坐标
-
mLongitude
public double mLongitude
围栏中心点经度坐标
-
mRadius
public float mRadius
围栏半径
-
differDistance
public float differDistance
已废弃
-
mCoorType
public java.lang.String mCoorType
围栏坐标类型
-
mLatitudeC
public double mLatitudeC
-
mLongitudeC
public double mLongitudeC
-
Notified
public int Notified
-
isAdded
public boolean isAdded
-
mNotifyCache
public com.baidu.location.notify.NotifyCache mNotifyCache
-
-
方法详细资料
-
SetNotifyLocation
public void SetNotifyLocation(double latitude, double longitude, float radius, java.lang.String coorType)
设置位置提醒的点的相关参数,- 参数:
latitude
- 纬度,经度,距离范围,坐标系类型(gcj02,gps,bd09,bd09ll)longitude
- 经度radius
- 距离范围coorType
- 坐标系类型(gcj02,gps,bd09,bd09ll)
-
onNotify
public void onNotify(BDLocation mlocation, float distance)
位置提醒回调函数- 参数:
mlocation
- 位置坐标distance
- 当前位置跟设定提醒点的距离
-
-