|
||||||||
上一个类 下一个类 | 框架 无框架 | |||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.tencent.map.geolocation.TencentGeofenceManager
public class TencentGeofenceManager
用于访问腾讯地理围栏服务的类, 腾讯地理围栏服务向客户端提供围栏事件通知.
注意, 使用腾讯地理围栏服务前, 应确保:
构造方法摘要 | |
---|---|
TencentGeofenceManager(Context context)
|
方法摘要 | |
---|---|
void |
addFence(TencentGeofence geofence,
PendingIntent intent)
添加一个围栏. |
void |
destroy()
清理腾讯地理围栏服务. |
void |
removeAllFences()
删除全部围栏. |
void |
removeFence(java.lang.String tag)
根据围栏标识删除围栏. |
void |
removeFence(TencentGeofence fence)
移除一个围栏. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public TencentGeofenceManager(Context context)
方法详细信息 |
---|
public void destroy()
清理后的对象被认为无效, 不可也不应再继续进行任何操作.
public void addFence(TencentGeofence geofence, PendingIntent intent)
geofence
- 围栏intent
- 进入或退出围栏时执行的操作
java.lang.NullPointerException
- geofence 或 pendingIntent 为 nullpublic void removeFence(TencentGeofence fence)
fence
- 围栏public void removeAllFences()
public void removeFence(java.lang.String tag)
tag
- 围栏标识
|
||||||||
上一个类 下一个类 | 框架 无框架 | |||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |