ScannerConfiguration

public class ScannerConfiguration

This class represents a Scanner configuration.

A scanner configuration allows the developer to control all aspects of the scanning logic.

Use the Builder class to get a valid configuration.

There are some system events critical to the functionality of the scanning logic.

See also: de.sensry.kallisto.service.listeners.events.SystemEventType

Fields

BALANCED_SCANNER

public static final int BALANCED_SCANNER

A balanced scanner cycle time, in seconds.

LONG_SCAN

public static final int LONG_SCAN

A long scan duration, in seconds.

LOW_POWER_SCANNER

public static final int LOW_POWER_SCANNER

A low power scanner cycle time, in seconds.

MAX_CYCLE_DURATION

public static final int MAX_CYCLE_DURATION

Maximum allowed cycle duration, in seconds.

MAX_DURATION

public static final int MAX_DURATION

Maximum allowed time for active scanning, in seconds.

MEDIUM_SCAN

public static final int MEDIUM_SCAN

A medium scan duration, in seconds.

RESPONSIVE_SCANNER

public static final int RESPONSIVE_SCANNER

A responsive scanner cycle time, in seconds.

SHORT_SCAN

public static final int SHORT_SCAN

A short scan duration, in seconds.

Methods

getCycleDuration

public int getCycleDuration()

Get the configured scan cycle duration.

Represents the amount of time that the scanner waits after finishing a scan before starting a new scan.

Returns

A integer detailing the scan cycle duration, in seconds.

getDuration

public int getDuration()

Get the configured scan duration.

Returns

A integer detailing the scan duration, in seconds.

getLegacyDiscovery

public boolean getLegacyDiscovery()

Get if legacy Kallisto device discovery is enabled.

If this is enabled, the scanner will connect to the device in order to discoverFeatures the device features, if the advertising data doesn’t use the firmware SDK Advertising Manager.

Returns

true if legacy discovery is enabled.

getListener

public ScanListener getListener()

Get the configured ScanListener.

Returns

The scan listener or null if not configured.

getScanConfiguration

public ScanConfiguration getScanConfiguration()

Get the configured scan configuration.

Returns

The configured ScanConfiguration.