我将Geofence构建为:
GeofenceModel modelExit = new GeofenceModel.Builder("id_oi_456")
.setTransition(Geofence.GEOFENCE_TRANSITION_DWELL)
.setExpiration(Geofence.NEVER_EXPIRE)
.setLatitude(40.414341)
.setLongitude(49.928548)
.setRadius(CLIENT_GEOFENCE_RADIUS)
.build();
SmartLocation.with(this).geofencing()
.add(modelExit)
.start(this);当设置为NEVER_EXPIRE时,它将被触发。如果未设置setExpiration(),则不会触发geofence。问题是,单个geofence的默认过期时间是多少?
https://stackoverflow.com/questions/44323927
复制相似问题