|
||||||||
上一个类 下一个类 | 框架 无框架 | |||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.tencent.map.geolocation.TencentGeofence.Builder
public static class TencentGeofence.Builder
用于生成 TencentGeofence 的 Builder.
构造方法摘要 | |
---|---|
TencentGeofence.Builder()
|
方法摘要 | |
---|---|
TencentGeofence |
build()
根据已设置的参数生成新的 TencentGeofence 对象. |
TencentGeofence.Builder |
setCircularRegion(double latitude,
double longitude,
float radius)
设置围栏经纬度(GCJ-02坐标)和半径. |
TencentGeofence.Builder |
setExpirationDuration(long durationMillis)
设置围栏有效时间. |
TencentGeofence.Builder |
setTag(java.lang.String tag)
设置围栏标识, 标识不为空且应当唯一. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public TencentGeofence.Builder()
方法详细信息 |
---|
public TencentGeofence.Builder setCircularRegion(double latitude, double longitude, float radius)
latitude
- 纬度longitude
- 经度radius
- 半径, 单位为 m(米)
java.lang.IllegalArgumentException
- radius <= 0 或 latitude 和 longitude 超出有效范围public TencentGeofence.Builder setExpirationDuration(long durationMillis)
durationMillis
- 单位为 ms(毫秒)
java.lang.IllegalArgumentException
- durationMillis < 0public TencentGeofence.Builder setTag(java.lang.String tag)
java.lang.NullPointerException
- tag 为 "" 或 nullpublic TencentGeofence build()
|
||||||||
上一个类 下一个类 | 框架 无框架 | |||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |