Added in API level 29

DeviceInfoListener


interface DeviceInfoListener
android.net.wifi.p2p.WifiP2pManager.DeviceInfoListener

Interface for callback invocation when android.net.wifi.p2p.WifiP2pDevice is available in response to requestDeviceInfo(android.net.wifi.p2p.WifiP2pManager.Channel,android.net.wifi.p2p.WifiP2pManager.DeviceInfoListener).

Summary

Public methods
abstract Unit

The requested android.net.wifi.p2p.WifiP2pDevice is available.

Public methods

onDeviceInfoAvailable

Added in API level 29
abstract fun onDeviceInfoAvailable(wifiP2pDevice: WifiP2pDevice?): Unit

The requested android.net.wifi.p2p.WifiP2pDevice is available.

Parameters
wifiP2pDevice WifiP2pDevice?: Wi-Fi p2p android.net.wifi.p2p.WifiP2pDevice This value may be null.