-
public class ScanJobScheduler
Schedules two types of ScanJobs: 1. Periodic, which are set to go every scanPeriod+betweenScanPeriod 2. Immediate, which go right now. Immediate ScanJobs are used when the app is in the foreground and wants to get immediate results or when beacons have been detected with background scan filters and delivered via Intents and a scan needs to run in a timely manner to collect data about those beacons known to be newly in the vicinity despite the app being in the background. Created by dyoung on 6/7/17.
-
-
Method Summary
Modifier and Type Method Description static ScanJobScheduler
getInstance()
void
applySettingsToScheduledJob(Context context, BeaconManager beaconManager)
void
cancelSchedule(Context context)
void
scheduleAfterBackgroundWakeup(Context context, List<ScanResult> scanResults)
void
forceScheduleNextScan(Context context)
void
scheduleForIntentScanStrategy(Context context)
-
-
Method Detail
-
getInstance
@NonNull() static ScanJobScheduler getInstance()
-
applySettingsToScheduledJob
void applySettingsToScheduledJob(Context context, BeaconManager beaconManager)
-
cancelSchedule
void cancelSchedule(Context context)
-
scheduleAfterBackgroundWakeup
void scheduleAfterBackgroundWakeup(Context context, List<ScanResult> scanResults)
-
forceScheduleNextScan
void forceScheduleNextScan(Context context)
-
scheduleForIntentScanStrategy
void scheduleForIntentScanStrategy(Context context)
-
-
-
-