Class 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 Detail

      • 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)