-
- All Implemented Interfaces:
public class DetectionTracker
Created by dyoung on 1/10/15. This class keeps track of the time when the last beacon detection occurred. Used for deciding whether to start a new scan. Defer a scan if the last beacon detection is smaller than some threshold for repeating a scan.
-
-
Method Summary
Modifier and Type Method Description static DetectionTracker
getInstance()
long
getLastDetectionTime()
void
recordDetection()
-
-
Method Detail
-
getInstance
static DetectionTracker getInstance()
-
getLastDetectionTime
long getLastDetectionTime()
-
recordDetection
void recordDetection()
-
-
-
-