Added in API level 30

ScanResultsCallback


abstract class ScanResultsCallback
kotlin.Any
   ↳ android.net.wifi.WifiManager.ScanResultsCallback

Abstract class for scan results callback. Should be extended by applications and set when calling WifiManager.registerScanResultsCallback(Executor, ScanResultsCallback).

Summary

Public constructors

Public methods
abstract Unit

Called when new scan results are available.

Public constructors

ScanResultsCallback

Added in API level 30
ScanResultsCallback()

Public methods

onScanResultsAvailable

Added in API level 30
abstract fun onScanResultsAvailable(): Unit

Called when new scan results are available. Clients should use WifiManager.getScanResults() to get the scan results.