public final class SensorScan

  1. Object
  2. SensorScan
A running sensor scan. Stop it as soon as the user has chosen a device – scanning is expensive and both platforms throttle apps that leave it running.

Methods

public void stop()Stops the scan.
public boolean isScanning()true until stop() is called or the scan times out.

Inherited methods

Method details

stop

public void stop()
Stops the scan. Idempotent.

isScanning

public boolean isScanning()
true until stop() is called or the scan times out.