public class ScanPeriod
extends java.lang.Object
ScanContext.
 The active scan period must be a positive value equal or longer than 3000 ms whereas
 the passive scan period must be a positive value equal or higher than 2000ms or equal to 0.| Modifier and Type | Field and Description | 
|---|---|
| static long | MINIMAL_ACTIVE_SCAN_PERIOD | 
| static long | MINIMAL_PASSIVE_SCAN_PERIOD | 
| static ScanPeriod | MONITORINGThe constant MONITORING. | 
| static ScanPeriod | RANGINGThe constant RANGING. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ScanPeriod | create(long activePeriodMillis,
      long passivePeriodMillis)Instantiates a new Scan period. | 
| long | getActivePeriod()Provides active scan period [ms]. | 
| long | getFullPeriod()Provides sum of both active and passive period [ms]. | 
| long | getPassivePeriod()Provides passive period [ms]. | 
public static final long MINIMAL_ACTIVE_SCAN_PERIOD
public static final long MINIMAL_PASSIVE_SCAN_PERIOD
public static final ScanPeriod RANGING
public static final ScanPeriod MONITORING
public static ScanPeriod create(long activePeriodMillis, long passivePeriodMillis)
activePeriodMillis - the active period [ms]passivePeriodMillis - the passive period [ms]public long getActivePeriod()
public long getPassivePeriod()
public long getFullPeriod()