Added in API level 14

ActionListener


interface ActionListener
android.net.wifi.p2p.WifiP2pManager.ActionListener

Interface for callback invocation on an application action

Summary

Public methods
abstract Unit
onFailure(reason: Int)

The operation failed

abstract Unit

The operation succeeded

Public methods

onFailure

Added in API level 14
abstract fun onFailure(reason: Int): Unit

The operation failed

Parameters
reason Int: The reason for failure could be one of P2P_UNSUPPORTED, ERROR or BUSY

onSuccess

Added in API level 14
abstract fun onSuccess(): Unit

The operation succeeded