public static final class ScanContext.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScanContext |
build()
Builds global scan context instance.
|
ScanContext.Builder |
setActivityCheckConfiguration(ActivityCheckConfiguration actvitivyCheckConfiguration)
|
ScanContext.Builder |
setEddystoneScanContext(EddystoneScanContext eddystoneScanContext)
Sets
EddystoneScanContext to ScanContext. |
ScanContext.Builder |
setForceScanConfiguration(ForceScanConfiguration forceScanConfiguration)
Sets ForceScanConfiguration (
ForceScanConfiguration ). |
ScanContext.Builder |
setIBeaconScanContext(IBeaconScanContext iBeaconScanContext)
Sets
IBeaconScanContext to ScanContext. |
ScanContext.Builder |
setScanMode(int scanMode)
Sets Scan Mode.
|
ScanContext.Builder |
setScanPeriod(ScanPeriod scanPeriod)
Sets
ScanPeriod . |
public ScanContext.Builder setIBeaconScanContext(IBeaconScanContext iBeaconScanContext)
IBeaconScanContext
to ScanContext. Use null for disabling ibeacon scaniBeaconScanContext
- public ScanContext.Builder setEddystoneScanContext(EddystoneScanContext eddystoneScanContext)
EddystoneScanContext
to ScanContext. Use null for disabling eddystone scaneddystoneScanContext
- public ScanContext.Builder setActivityCheckConfiguration(ActivityCheckConfiguration actvitivyCheckConfiguration)
ActivityCheckConfiguration
.
By default, the removal configuration is disabled and beacons which
signal's strength becomes unidentifiable remain in the delivered list.
Filtering active beacons list by applying removal configuration gives
more reliable relation to real beacons surrounding in particular moment.
This parameter should be applied if desired before invoking
startMonitoring/startRanging methods.
If not set, the RemovalConfiguration with unacceptable values is applied
and thus the functionality is disabled.actvitivyCheckConfiguration
- the activity check configurationpublic ScanContext.Builder setScanMode(int scanMode)
ProximityManager.SCAN_MODE_BALANCED
- perform Bluetooth LE scan in balanced power mode.
ProximityManager.SCAN_MODE_LOW_LATENCY
- scan using highest duty cycle.
ProximityManager.SCAN_MODE_LOW_POWER
- perform Bluetooth LE scan in low power mode.scanMode
- the scan modepublic ScanContext.Builder setForceScanConfiguration(ForceScanConfiguration forceScanConfiguration)
ForceScanConfiguration
).forceScanConfiguration
- the force scan configurationpublic ScanContext.Builder setScanPeriod(ScanPeriod scanPeriod)
ScanPeriod
.scanPeriod
- the monitor periodpublic ScanContext build()