Class ShadowWifiScanner

java.lang.Object
org.robolectric.shadows.ShadowWifiScanner

@Implements(value=android.net.wifi.WifiScanner.class, isInAndroidSdk=false) public class ShadowWifiScanner extends Object
Shadow for WifiScanner.
  • Field Details

  • Constructor Details

    • ShadowWifiScanner

      public ShadowWifiScanner()
  • Method Details

    • setScanResults

      public void setScanResults(List<ScanResult> scanResults)
      This method sets the scanResults that are immediately passed to the listeners, or returned by getSingleScanResults().

      All registered listeners are notified immediately after this is called.

    • getSingleScanResults

      @Implementation(minSdk=30) protected List<ScanResult> getSingleScanResults()