to top
Android APIs
Added in 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

? Examples
abstract void onFailure(int reason)
The operation failed

? Examples
abstract void onSuccess()
The operation succeeded

Public Methods

public abstract void onFailure (int reason)

Added in 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 ()

Added in API level 14

The operation succeeded

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.