Added in API level 29

WifiP2pManager.DiscoveryStateListener


public static interface WifiP2pManager.DiscoveryStateListener

android.net.wifi.p2p.WifiP2pManager.DiscoveryStateListener


Interface for callback invocation when p2p state is available in response to WifiP2pManager.requestDiscoveryState(Channel, DiscoveryStateListener).

Summary

Public methods

abstract void onDiscoveryStateAvailable(int state)

The requested p2p discovery state is available.

Public methods

onDiscoveryStateAvailable

Added in API level 29
public abstract void onDiscoveryStateAvailable (int state)

The requested p2p discovery state is available.

Parameters
state int: Wi-Fi p2p discovery state Value is WifiP2pManager.WIFI_P2P_DISCOVERY_STOPPED, or WifiP2pManager.WIFI_P2P_DISCOVERY_STARTED