类 BDNotifyListener


  • public abstract class BDNotifyListener
    extends java.lang.Object
    位置提醒功能,可供地理围栏需求比较小的开发者使用
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void onNotify​(BDLocation mlocation, float distance)
      位置提醒回调函数
      void SetNotifyLocation​(double latitude, double longitude, float radius, java.lang.String coorType)
      设置位置提醒的点的相关参数,
      • 从类继承的方法 java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • 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
    • 构造器详细资料

      • BDNotifyListener

        public BDNotifyListener()
    • 方法详细资料

      • 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 - 当前位置跟设定提醒点的距离