Added in API level 29

NetworkInfoListener


interface NetworkInfoListener
android.net.wifi.p2p.WifiP2pManager.NetworkInfoListener

Interface for callback invocation when android.net.NetworkInfo is available in response to requestNetworkInfo.

Summary

Public methods
abstract Unit

The requested android.net.NetworkInfo is available

Public methods

onNetworkInfoAvailable

Added in API level 29
abstract fun onNetworkInfoAvailable(networkInfo: NetworkInfo): Unit

The requested android.net.NetworkInfo is available

Parameters
networkInfo NetworkInfo: Wi-Fi p2p android.net.NetworkInfo This value cannot be null.