public final class TencentGeofenceManager
extends java.lang.Object
注意, 使用腾讯地理围栏服务前, 应确保:
构造器和说明 |
---|
TencentGeofenceManager(android.content.Context context) |
限定符和类型 | 方法和说明 |
---|---|
void |
addFence(TencentGeofence geofence,
android.app.PendingIntent intent)
添加一个围栏.
|
void |
destroy()
清理腾讯地理围栏服务.
|
void |
removeAllFences()
删除全部围栏.
|
void |
removeFence(java.lang.String tag)
根据围栏标识删除围栏.
|
void |
removeFence(TencentGeofence fence)
移除一个围栏.
|
public void destroy()
清理后的对象被认为无效, 不可也不应再继续进行任何操作.
public void addFence(TencentGeofence geofence, android.app.PendingIntent intent)
geofence
- 围栏intent
- 进入或退出围栏时执行的操作public void removeFence(TencentGeofence fence)
fence
- 围栏public void removeAllFences()
public void removeFence(java.lang.String tag)
tag
- 围栏标识