Added in API level 29

WifiP2pManager.NetworkInfoListener


public static interface WifiP2pManager.NetworkInfoListener

android.net.wifi.p2p.WifiP2pManager.NetworkInfoListener


Interface for callback invocation when NetworkInfo is available in response to WifiP2pManager.requestNetworkInfo(Channel, NetworkInfoListener).

Summary

Public methods

abstract void onNetworkInfoAvailable(NetworkInfo networkInfo)

The requested NetworkInfo is available

Public methods

onNetworkInfoAvailable

Added in API level 29
public abstract void onNetworkInfoAvailable (NetworkInfo networkInfo)

The requested NetworkInfo is available

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