to top
Android APIs
Since: API Level 14
public static interface

WifiP2pManager.ActionListener

android.net.wifi.p2p.WifiP2pManager.ActionListener

Class Overview

Interface for callback invocation on an application action

Summary

Public Methods
abstract void onFailure(int reason)
The operation failed
abstract void onSuccess()
The operation succeeded

Public Methods

public abstract void onFailure (int reason)

Since: API Level 14

The operation failed

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

public abstract void onSuccess ()

Since: API Level 14

The operation succeeded