Android Studio Sign in
Added in API level 29

WifiP2pManager.P2pStateListener


public static interface WifiP2pManager.P2pStateListener

android.net.wifi.p2p.WifiP2pManager.P2pStateListener


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

Summary

Public methods

abstract void onP2pStateAvailable(int state)

The requested p2p state is available.

Public methods

onP2pStateAvailable

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

The requested p2p state is available.

Parameters
state int: Wi-Fi p2p state Value is WifiP2pManager.WIFI_P2P_STATE_DISABLED, or WifiP2pManager.WIFI_P2P_STATE_ENABLED

Morty Proxy This is a proxified and sanitized view of the page, visit original site.