Package org.altbeacon.beacon.service
Class ScanJobScheduler
- java.lang.Object
-
- org.altbeacon.beacon.service.ScanJobScheduler
-
@RequiresApi(api=21) public class ScanJobScheduler extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplySettingsToScheduledJob(Context context, BeaconManager beaconManager)voidcancelSchedule(Context context)voidforceScheduleNextScan(Context context)static ScanJobSchedulergetInstance()voidscheduleAfterBackgroundWakeup(Context context, List<ScanResult> scanResults)
-
-
-
Method Detail
-
getInstance
@NonNull public static ScanJobScheduler getInstance()
-
applySettingsToScheduledJob
public void applySettingsToScheduledJob(Context context, BeaconManager beaconManager)
-
cancelSchedule
public void cancelSchedule(Context context)
-
scheduleAfterBackgroundWakeup
public void scheduleAfterBackgroundWakeup(Context context, List<ScanResult> scanResults)
-
forceScheduleNextScan
public void forceScheduleNextScan(Context context)
-
-