Added in API level 30

SuggestionConnectionStatusListener


interface SuggestionConnectionStatusListener

Interface for suggestion connection status listener. Should be implemented by applications and set when calling WifiManager.addSuggestionConnectionStatusListener(.

Summary

Public methods
abstract Unit
onConnectionStatus(wifiNetworkSuggestion: WifiNetworkSuggestion, failureReason: Int)

Called when the framework attempted to connect to a suggestion provided by the registering app, but the connection to the suggestion failed.

Public methods

onConnectionStatus

Added in API level 30
abstract fun onConnectionStatus(
    wifiNetworkSuggestion: WifiNetworkSuggestion,
    failureReason: Int
): Unit

Called when the framework attempted to connect to a suggestion provided by the registering app, but the connection to the suggestion failed.